- Mastering Concurrency in Python
- Quan Nguyen
- 222字
- 2021-06-10 19:23:55
I/O bound
Another way to think about sequentiality is the concept (in computer science) of a condition called I/O bound, in which the time it takes to complete a computation is mainly determined by the time spent waiting for input/output (I/O) operations to be completed. This condition arises when the rate at which data is requested is slower than the rate at which it is consumed, or, in short, more time is spent requesting data than processing it.
In an I/O bound state, the CPU must stall its operation, waiting for data to be processed. This means that, even if the CPU gets faster at processing data, processes tend to not increase in speed in proportion to the increased CPU speed, since they get more I/O-bound. With faster computation speed being the primary goal of new computer and processor designs, I/O bound states are becoming undesirable, yet more and more common, in programs.
As you have seen, there are a number of situations in which the application of concurrent programming results in decreased processing speed, and they should thus be avoided. It is therefore important for us to not see concurrency as a golden ticket that can produce unconditionally better execution times, and to understand the differences between the structures of programs that benefit from concurrency and programs that do not.
- 軟件安全技術(shù)
- Software Testing using Visual Studio 2012
- 少年輕松趣編程:用Scratch創(chuàng)作自己的小游戲
- Web開(kāi)發(fā)的貴族:ASP.NET 3.5+SQL Server 2008
- 高級(jí)C/C++編譯技術(shù)(典藏版)
- 深入淺出DPDK
- 3D少兒游戲編程(原書第2版)
- jQuery開(kāi)發(fā)基礎(chǔ)教程
- Java EE 7 Performance Tuning and Optimization
- INSTANT Passbook App Development for iOS How-to
- JavaCAPS基礎(chǔ)、應(yīng)用與案例
- CRYENGINE Game Development Blueprints
- Unity 2017 Game AI Programming(Third Edition)
- Head First Kotlin程序設(shè)計(jì)
- 軟件設(shè)計(jì)模式(Java版)