356 views
1 votes
1 votes
In a system, there are 2 process and Round robin policy is employed. After some time one process gets completed, but another process is remaining with 6 unit burst time.Time Quantam is 2 unit. So, how many context switch occurs to complete this remaining process?(Ignore previous and last context switch.)

A. 0

B. 2

C. 3

D. 4

1 Answer

Best answer
2 votes
2 votes
 

If there's only one process is in the ready queue, context switch will not occur. refer this link below So answer should be 0.

http://stackoverflow.com/questions/8997616/does-a-context-switch-occur-in-a-system-whose-ready-queue-has-only-one-process-a.

It makes no sense to save and reload PCB state values when the same process is to be executed again.

selected by

Related questions

2 votes
2 votes
1 answer
1
Parshu gate asked Nov 27, 2017
726 views
which of the following is/are TRUE,(I) a single page-table entry can store the mappings for multiple physical-page frames.(II) Clustered page tables are particularly usef...
1 votes
1 votes
7 answers
3
sh!va asked Dec 6, 2016
1,492 views
Conceptual question:What is the difference between program and process?any simple ,clear answer plz..
0 votes
0 votes
0 answers
4
Anup patel asked Jan 6, 2017
392 views