Operating Systems 2015F: Tutorial 7: Difference between revisions

From Soma-notes
Created page with "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 [[Operating Systems 2015F Le..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
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 [[Operating Systems 2015F Lecture 16|in class on October 6th]].
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 [[Operating Systems 2015F Lecture 16|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.)

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.)