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

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. 

主站蜘蛛池模板: 平利县| 临安市| 彭水| 莲花县| 夏津县| 无棣县| 南安市| 临潭县| 都昌县| 吉林市| 昌平区| 兰州市| 陈巴尔虎旗| 怀宁县| 宜兰市| 丹江口市| 平泉县| 永泰县| 土默特右旗| 绵阳市| 房山区| 盘锦市| 海宁市| 华宁县| 新巴尔虎右旗| 临安市| 老河口市| 湟源县| 香港| 祁阳县| 新昌县| 当阳市| 墨江| 东阳市| 宁城县| 遂昌县| 舟山市| 苍梧县| 攀枝花市| 漯河市| 上犹县|