Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke, David Auer

11th Edition

B003Y7CIBU, 978-0132302678

More Books

Students also viewed these Databases questions