How to distinguish between I / O binding jobs and CPU?

How does the long-term planner decide which task is related to I / O binding and which one is related to CPU?

I heard that using cpu burst, we can distinguish between the bounds of the I / O binding and the CPU, but how is the CPU packet calculated without processing the program?

+3
source share
4 answers

Typically, the CPU scheduler assigns time slices to processes / threads and switches between them when a) the cutoff time is over or b) the process / thread blocks for I / O.

I/O -, /, , . , , / wait_for_io_completion(), .

, , I/O , . - , , () .

+2

, I/O.

+1

IO BOUND PROCESS: Io io, , . COU BOUND PROCESS: , .

0

answered tumaini kami david Answers. Typically, the CPU scheduler assigns time intervals to processes / threads and switches between them whenever a) the time interval has expired or b) process / thread blocks for input / output .... binding to the processor takes more time to perform calculations than to enter -output bound.strong text

0
source

All Articles