Adaptive scheduling in minix

94 views
Skip to first unread message

aankith athrey

unread,
Nov 29, 2017, 1:23:51 AM11/29/17
to minix3
Hello everyone.I am working on an OS project using minix. I was trying to implement the adaptive scheduling for the project of mine but I m unable to do it.If possible, could you please help me out with the implementation of the same

The hints given were as follows:
In clock.c: add a global variable to represent when the current five-second segment began.

In proc.h: add two fields to the proc structure. One represented the five-second segment when the process last ran, and one represented the amount of time consumed thus far by the process in that five-second segment.

In do_fork.c: modify the do_fork() function so that these fields were initialized to 0 when a new process is created.

In clock.c: modify it to track the current five-second segment and to update the added process fields based on the clock ticks.

In proc.c: modify it so that the scheduler chooses according to the new algorithm.

aankith athrey

unread,
Nov 29, 2017, 1:23:51 AM11/29/17
to minix3
Hello everyone.
I was trying to implement adaptive scheduling for a project of mine in minix but am unable to it.
Could anyone help me out with the modifications to be done to the kernel's clock.c file?
I have to track the 5 second seg and update the process's fields .
Also how do i modify the kernel's enqueue function in the proc.c file so that scheduler chooses this technique?
Regards
Ankith.

r0ller

unread,
Nov 29, 2017, 4:21:27 AM11/29/17
to minix3
Hi,

Not that I could help you with that but as the welcome message of this group indicates:

"This group is not for homework questions. For help with MINIX 3 related course assignments, please contact your course supervisor instead."

Best regards,
r0ller
Reply all
Reply to author
Forward
0 new messages