edited by
7,166 views
3 votes
3 votes

There are three processes in the ready queue. When the currently running process requests for I/O how many process switches take place?

  1. 1
  2. 2
  3. 3
  4. 4
edited by

7 Answers

0 votes
0 votes
For me its 2 switchings. On requestiong I/O, the process will be shifted to wait queue and the CPU time will be allotted to the very next process in the ready queue. So two switching.
0 votes
0 votes
Correct Answer is two context switches. first , from running to block state for IO, 2nd, from ready queue to running .
0 votes
0 votes
Option (b) 2 is correct. First context switch will happen when we move the currently executing state to blocked state. Second, to move the process of ready queue to execute state after serving the I/O request. So, 2 context switches will be required. Hope this helps.
Answer:

Related questions

6 votes
6 votes
1 answer
1
go_editor asked Jun 24, 2016
5,622 views
In a system using single processor, a new process arrives at the rate of six processes per minute and each such process requires seven seconds of service time. What is th...
7 votes
7 votes
4 answers
4
go_editor asked Jun 22, 2016
6,482 views
Consider a 32-bit machine where four-level paging scheme is used. If the hit ratio to TLB is 98%, and it takes 20 nanosecond to search the TLB and 100 nanoseconds to acce...