官术网_书友最值得收藏!

Concurrency versus parallelism in I/O-bound algorithms

As seen before, I/O-bound algorithms are constantly waiting on something else. This constant waiting allows single-core devices to use the processor to do other useful tasks while waiting. So concurrent algorithms that are I/O-bound will perform similarly regardless of the execution happening in parallel or in a single core.

It is expected that I/O-bound algorithms will always perform better in concurrent implementations than if they are sequential. So it's recommended for I/O operations to be always executed concurrently. As mentioned before, in GUI applications it's particularly important to not block the UI thread. 

主站蜘蛛池模板: 延寿县| 辉南县| 溆浦县| 剑阁县| 丰城市| 东乌珠穆沁旗| 二连浩特市| 扎鲁特旗| 临夏县| 稷山县| 大邑县| 和硕县| 敖汉旗| 北流市| 沭阳县| 万山特区| 新闻| 依兰县| 墨竹工卡县| 政和县| 洱源县| 永胜县| 建水县| 平果县| 樟树市| 镇江市| 镶黄旗| 岐山县| 延津县| 襄樊市| 泰兴市| 普洱| 迭部县| 茌平县| 海丰县| 贵港市| 包头市| 马关县| 凉城县| 海口市| 寿阳县|