Operating Systems 2015F: Tutorial 7: Difference between revisions

From Soma-notes
No edit summary
No edit summary
 
Line 2: Line 2:


If you get through the class example quickly, attempt some of the following modifications:
If you get through the class example quickly, attempt some of the following modifications:
* Make getpriority subtract 5 from the priority when returning it (so you can't tell that we added 5 in setpriority).
* On execve, make the priority (niceness) of a process the maximum value (make it have the lowest possible priority) if the executable has the string "pushover" in it.
* Make chmod always make things world readable. (Note: this might be dangerous!  Take precautions.)
* Make chmod always make things world readable. (Note: this might be dangerous!  Take precautions.)
* On execve, make the priority (niceness) of a process the maximum value (make it have the lowest possible priority) if the executable has the string "pushover" in it.

Latest revision as of 20:30, 6 November 2015

In this tutorial you should either work on your project or, if you are having trouble getting started, you should work through the example covered in class on October 6th.

If you get through the class example quickly, attempt some of the following modifications:

  • Make getpriority subtract 5 from the priority when returning it (so you can't tell that we added 5 in setpriority).
  • On execve, make the priority (niceness) of a process the maximum value (make it have the lowest possible priority) if the executable has the string "pushover" in it.
  • Make chmod always make things world readable. (Note: this might be dangerous! Take precautions.)