IO Bound and CPU Bound Process
For Complete YouTube Video: Click Here
This class will try to understand IO Bound and CPU Bound Process.
We have already discussed the degree of multiprogramming in our previous class.
IO Bound and CPU Bound Process
IO Bound Process: It spends more time in IO operations than computations.
CPU Bound Process: It spends more time in computation than IO operations.
To understand this concept, we will consider the image shown below.
In the above image, we have two processes, P1 and P2.
Assume that both processes have ten instructions each.
For example, if P1 has eight of ten instructions related to IO operations, then P1 is IO bound process.
Similarly, if P2 has eight of ten instructions related to the CPU computations, then P2 is CPU bound process.
Though this concept looks simple, here vital point to understand is while scheduling the processes from new to ready state, the scheduler has to assign a mix of IO and CPU-bound processes to utilize the computer resources efficiently.
We will discuss different types of schedulers in our latter classes.