- 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.
- PHP動(dòng)態(tài)網(wǎng)站程序設(shè)計(jì)
- Java軟件開(kāi)發(fā)基礎(chǔ)
- 琢石成器:Windows環(huán)境下32位匯編語(yǔ)言程序設(shè)計(jì)
- Android系統(tǒng)級(jí)深入開(kāi)發(fā)
- 運(yùn)用后端技術(shù)處理業(yè)務(wù)邏輯(藍(lán)橋杯軟件大賽培訓(xùn)教材-Java方向)
- SQL Server與JSP動(dòng)態(tài)網(wǎng)站開(kāi)發(fā)
- SQL Server數(shù)據(jù)庫(kù)管理與開(kāi)發(fā)兵書(shū)
- Android驅(qū)動(dòng)開(kāi)發(fā)權(quán)威指南
- 新印象:解構(gòu)UI界面設(shè)計(jì)
- 智能手機(jī)故障檢測(cè)與維修從入門(mén)到精通
- Oracle實(shí)用教程
- Julia數(shù)據(jù)科學(xué)應(yīng)用
- Web編程基礎(chǔ):HTML5、CSS3、JavaScript(第2版)
- WCF技術(shù)剖析(卷1)
- HTML5與CSS3權(quán)威指南