Answered step by step
Verified Expert Solution
Question
1 Approved Answer
There are several related goals for this assignment: Implement the Spawn ( ) , Waitpid ( ) , and Exit ( ) system calls. These
There are several related goals for this assignment:
Implement the Spawn Waitpid and Exit system calls. These calls will allow user
processes to create new user processes. Spawn will involve loading a user program
from a file and then running it
Do some basic keyboard IO implementing Putchar and Getchar for user programs.
Write a simple shell for Minix with support for Spawn and Waitpid
Defined a shared memory, ie mailbox, from the parent to the children. The memory
must be shared among all children as you need to implement readerswriters
synchronization paradigm.
Write a program and the necessary traps to display a list of all running processes
spawned from the shell, and otherwise This list should include the program name, ID
mode usersystem and state running ready, waiting, etc. for each process in the
system. In other words, this program would do the same thing as ps does on Unix. You'll
need at least one new trap to implement this, and Id suggest two traps one to get the list
of process IDs and one to find information about each process Keep in mind that
returning strings from a trap could be difficult.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started