Assigned September 13, 2006
To exercise our understanding of:
notnice pid prioriySee man 2 nice for a description of the nice command. See also man 2 kill. Also look for sys_nice and sys_kill in the kernel sources, for help.
Note: FreeBSD users, man 3 nice.
Add the notnice system call by modifying arch/i386/kernel/entry.S. Find a suitable place to add the code for sys_notnice, and add code simply to return the priority of the current process, see include/linux/sched.h#task_struct. Figure out how to call it from a user program. Test.
Do this in the first week (due wednesday 20) and submit diffs for the code (see man diff).
Have steps two and three done by the end of the second week of the assignment. Submit diffs and the output of appropriate ps commands as proof of success.