You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the argument passed updates the process's exit status
Change wait() to wait(int\*)
the pointer gets updated with the exit status of the child
Add waitpid(int,int\*,int)
acts like wait(int*), but with additional functionality.
First argument is the pid of the process that the caller wants to wait for
Second argument is a pointer that gets updated with the exit status of the process the caller is waiting for
Third argument represents the options for waitpid
Part 2: Implementing priority scheduling
Add setpriority(int)
changes the caller's priority value to the passed in argument. If argument is not a valid priority level, function will return -1. It yields once priority is set to make sure highest priority process is running.
Change scheduler to priority scheduler
changed from round-robin to priority scheduling. Priority values range from 0 - 63. 0 is the highest.
Lab 2 Overview
Part 1: Growing Stack
Pages are now mapped below KERNBASE. Pointer points to bottom of the page. Allows stack to grow downwards. Added cases for page faults in trap.c.
Part 2: Implement Shared Memory
Implemented memory that can be shared among other processes.
About
An extension of the instructional operating system xv6