Scheduling policy
Round Robin
1) It runs a job for a time slice (scheduling quantum)
2) Switches to the next job in the run queue
3) It repeatedly does so until the jobs are finished
4) Time slice
Multi-level Feedback Queue
1) It tries to address
2) Basic Rule
For an implementation of scheduler considering each process's priority, it is not easy to edit scheduler function. Before editing scheduler, I added system call for getpriority and setpriority. After fully testing execution of two system calls, I started to check flow of scheduler and discussed about what scheduling policy is applied, When Round Robin is applied, what is the additional variable for RR.
I had a difficulty to devise a scheduling policy and update newly scheduler. Thus, in evening, I reviewed the flow of scheduler and existing scheduling policy. When I think Round Robin, it is very difficult that how the concept of time slice is applied in scheduling. Through evening study, I figured out the meaning of time slice and exactly and how time slice works in multi-level feedback queue and Round Robin. Based on this, tomorrow I would discuss how a concept of time slice can be applied in our scheduler of xv6.