The following questions are all short answer (at most a few sentences) 1. Consider the following interaction with a UNIX shell: [10] catfoo foo: No such file or directory [11] cat foo foo: No such file or directory 112] As shown, both command lines resulted in the same error message, but it came from different programs. Explain how that is possible. 2. Enumerate the actions taken by the shell if the user enters the command below. You can assume that the referenced programs and files exist. a.out
ber 3. Compute the response time and turnaround time for using SJF, FIFO, RR-1 schedulers for the following scenarios: a. b. three jobs of length 120 jobs of different lengths: 100, 120, and 200. Assume the jobs are in the queue in this order: 100,120,200. 4. What are Voo-Doo constants? 5. What is the benefit of unix providing two different calls, fork) and exec), instead of one call to create a new process to execute a new program? 6. For this problem you will need to revise the scheduling analysis for the deterministic workload defined on page 42 of the "03 Processes" notes, to take into consideration process switching time. Assume that task switching time is 1 cycle. a. b. Fill out the table below for FCFS scheduling Fill out the table below for Round-robin, q-4 arrival service time required start time T W 12 The following questions are all short answer (at most a few sentences) 1. Consider the following interaction with a UNIX shell: [10] catfoo foo: No such file or directory [11] cat foo foo: No such file or directory 112] As shown, both command lines resulted in the same error message, but it came from different programs. Explain how that is possible. 2. Enumerate the actions taken by the shell if the user enters the command below. You can assume that the referenced programs and files exist. a.out ber 3. Compute the response time and turnaround time for using SJF, FIFO, RR-1 schedulers for the following scenarios: a. b. three jobs of length 120 jobs of different lengths: 100, 120, and 200. Assume the jobs are in the queue in this order: 100,120,200. 4. What are Voo-Doo constants? 5. What is the benefit of unix providing two different calls, fork) and exec), instead of one call to create a new process to execute a new program? 6. For this problem you will need to revise the scheduling analysis for the deterministic workload defined on page 42 of the "03 Processes" notes, to take into consideration process switching time. Assume that task switching time is 1 cycle. a. b. Fill out the table below for FCFS scheduling Fill out the table below for Round-robin, q-4 arrival service time required start time T W 12