Question: 1. Study the 'fork (),' 'exec (),' and 'wait()' commands and then develop and execute simple programs in any programming language that demonstrate their primary

1. Study the 'fork (),' 'exec (),' and 'wait()' commands and then develop and execute simple programs in any programming language that demonstrate their primary functionality. Note: Your answers must include the program and output screenshots. 2. Consider the following three processes that arrive in a system at the specified times, along with the duration of their CPU bursts. Process P1 arrives at time t=0, and has a CPU burst of 10 units. P2 arrives at t=2, and has a CPU burst of 2 units. P3 arrives at t=3, and has a CPU burst of 3 units. Write programs to find out average waiting time for each of the following algorithms under both the categories: preemptive and non-preemptive (a) First Come First Serve (b) Shortest Job First (c) Priority (d) Round robin with a time slice of (at most) 5 units per process
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
