0

I am trying to implement a system call in xv6 OS Increase_time( int n) which when executed will increase the timeslice of a program that calls it by n times. The default xv6 scheduler uses a simple FCFS and RR policies with each process having the same time slice. My implementation of Increase_time() will allow different processes to have different amount of time slices.

Can you please tell me a way how I can work around this? I know how to add a system call in xv6. I just need an idea as to how I can code my system call and what files to change in xv6.

1 Answers1

0

It seems to me that you are asking this question. In short : don't change amount of time in a slice according to the process, rather change number of timeslices received by it (refer the linked post).

Test Zero
  • 35
  • 1
  • 4