468 views
0 votes
0 votes
In a single core processor, with Round Robin scheduling, how does the CPU keep track of time when a time quantum expires and brings in another process?

1 Answer

2 votes
2 votes
CPU don't actually keep track of the time.

Let the scheduling algorithm is Round Robin then when the process has done with the time quantum time (Round Robin scheduling has it's fixed time quantum time) Then According to algorithm there would be an Interrupt generated (Time slice complete interrupt) and then the Short Term scheduler then schedule new process from ready queue.

tell me if something is not clear yet.

Related questions

0 votes
0 votes
1 answer
1
Nam14 asked Apr 5, 2023
536 views
Please read below passage from 10th edition Operating System Concepts, pg. 202:5.1.3 Preemptive and Nonpreemptive SchedulingCPU-scheduling decisions may take place under ...
0 votes
0 votes
0 answers
2
Iamniks4 asked Jan 16, 2019
232 views
Caption
0 votes
0 votes
0 answers
4
Iamniks4 asked Jan 12, 2019
140 views
The following is the code with two threads, producer and consumer, that can run in parallel. Further, S and Q are binary semaphores equipped with the standard P and V ope...