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

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. 

主站蜘蛛池模板: 云浮市| 如皋市| 梁山县| 青铜峡市| 内江市| 阿合奇县| 延庆县| 弥渡县| 昌都县| 左云县| 甘南县| 德清县| 南部县| 南雄市| 绵阳市| 泸水县| 察雅县| 鄂托克前旗| 南宁市| 冷水江市| 津南区| 海阳市| 锡林郭勒盟| 吉林省| 固安县| 锦屏县| 诏安县| 沧州市| 台东市| 泾源县| 米脂县| 礼泉县| 荥经县| 东丰县| 兴化市| 房产| 林芝县| 镇江市| 克拉玛依市| 临潭县| 巴林左旗|