pradeepppc / xv6

implementing a syscall in xv6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

These are only the modified files in the xv-6 scheduler for implementing the priority based scheduler . The default scheduler in Round Robin , these files also include the implementation of the system call set_priority() which takes process_id and a number as argument and sets the priority of that process .


			IMPLEMENTATION OF THE PRIORITY BASEDE SCHEDULER

==>  First we have to implement a syscall set_priority which chages the priority of the process.

==> Then we  have to modify the existing Round Robin scheduler to priority based scheduler which is simple , we have to iterate through the ptable and find the process which is runnable and with least priority value and we have to put that process into eexecution .

About

implementing a syscall in xv6


Languages

Language:C 78.5%Language:Makefile 18.7%Language:C++ 1.7%Language:Assembly 1.1%