Session 2013/2014 Semester 2
TUTORIAL 4
1. Which scheduling policy is most suitable for time-shared operating systems?
(a) Shortest Job First
(b) Round Robin
(c) First Come First Serve
(d) Elevator
What information about a job needs to be kept in process control block?
2. What information about a process needs to be saved, changed or updated when context switching takes place?
3. Five jobs are in the READY queue waiting to be processed. Their estimated CPU cycles are as follows: 10,3,5,6 and 2. Using SJN, in what order should they be processed to minimize average waiting time?
4. Assume that the following jobs are to be executed on a single processor system:
Job ID
CPU Cycle p 4 q 1 r 8 s 1 t 2
The jobs are assumed to have arrived at time 0 and in the order p, q, r, s, t. Calculate the departure time (completion time) for job p if scheduling used is the Round Robin with time quantum of 1.
Is it (a) 4 (b) 10 (c) 11 or (d) 12
5. Given the following information:
Job Number
Arrival Time
CPU Cycle
A
0
10
B
2
12
C
3
3
D
6
1
E
9
15
Draw a timeline for each of the following scheduling algorithm. (It may be helpful to first compute to first compute a start and finish time for each job).
a. FCFS
b. SJN
c. SRT
d. Round Robin (using a time quantum of 5, ignore context switching and natural wait)
6. Using the same information given for question 5, complete the chart by computing waiting time and turnaround time for each of the following scheduling algorithms (Ignoring context switching overhead).
a. FCFS
b. SJN
c. SRT
d. Round Robin (using a time quantum of 5)
7. Using the same information given for question 5, complete the chart by computing average waiting time and average turnaround time for each of the following scheduling algorithms and determine which one gives the best result .
8. Consider three CPU-intensive processes, which require 10, 20 and 30 time units and arrive at times 0, 2 and 6, respectively. How many context switches are needed if the operating system implements a Shortest Remaining Time first scheduling algorithm? Do not count the context switches at time zero and at the end.
(a) 1 (b) 2 (c) 3 (d) 4
You May Also Find These Documents Helpful
-
Step 4: If the smallest processing time is on the second machine, assign that job at the end of the sequence and eliminate the job.…
- 1315 Words
- 6 Pages
Satisfactory Essays -
For each set of application performance requirements shown in Figure 3.33, classify the network as single-tier or multi-tier performance. Please explain your choice for each.…
- 785 Words
- 4 Pages
Good Essays -
2. Next, complete a more detailed diagram that has five distinct processes (hence five circles), two for FastFit (Headquarters and the Warehouse)) and three for WGD’s three departments. This diagram should also include the database associated with each WGD department using the cylinder symbol, there are three of these. Now fill in the flows from Q1 above. Then diagram all the flows of information that occur within FastFit and within WGD to support the processing of the order. Do not diagram any computer network details; just illustrate the three databases using the cylinder symbol.…
- 871 Words
- 4 Pages
Better Essays -
2. Next, complete a more detailed diagram that has five distinct processes (hence five circles), two for FastFit (Headquarters and the Warehouse)) and three for WGD’s three departments. This diagram should also include the database associated with each WGD department using the cylinder symbol, there are three of these. Now fill in the flows from Q1 above. Then diagram all the flows of information that occur within FastFit and within WGD to support the processing of the order. Do not diagram any computer network details; just illustrate the three databases using the cylinder symbol.…
- 536 Words
- 3 Pages
Good Essays -
5. (TCO F) Which of the following statements is true? I. Overhead application may be made slowly as a job is worked on.II. Overhead application may be made in a single application at the time of completion of the job.III. Overhead application should be made to any job not completed at year-end in order to properly value the work in process inventory.(Points : 6)…
- 953 Words
- 4 Pages
Better Essays -
d. Network of activities and buffers (not sure?): The whole process with its wait times. Waiting room (20min wait time), examination (15-20min), waiting room for accounting office (5-15min), accounting office (10min), nurse station for blood check (5-10min), surgery (45min), recovery (3days)…
- 801 Words
- 3 Pages
Satisfactory Essays -
Chapter 13 is titled “Scheduling Operations” and it is mainly about scheduling decisions for batch operations and how they deal with the allocation of scarce resources to jobs, activities, tasks, or customers. “Scheduling results in a time-phased plan, or schedule, of activities. The schedule indicates what is to be done, when, by whom, and with what equipment. Scheduling should be clearly differentiated from aggregate planning” (Schroeder, pg. 293).…
- 775 Words
- 4 Pages
Good Essays -
3. The Earliest Start (ES) and Earliest Finish (EF) and Latest Start (LS) and Latest Finish (LF) times are calculated using Forward Pass and Backward Pass Algorithm.…
- 1041 Words
- 5 Pages
Powerful Essays -
The __________ contains the basic elements of a user’s program and can be generated directly from a compiled object file.…
- 438 Words
- 7 Pages
Satisfactory Essays -
Question 3: Use the information and your knowledge of the situation to develop a complete plan for Jason to use in the future. Part of this plan should be to build and demonstrate the approach to master scheduling for the data given in the case.…
- 475 Words
- 11 Pages
Satisfactory Essays -
12. (TCO C) Calculate the earliest start for Task B if its predecessor, Task A, finishes on day 3 and the duration of Task B is 2 days.…
- 814 Words
- 4 Pages
Good Essays -
Priceline case 1. (a) Joe Delong is not sure about the difference between cost accounting and a cost accounting system. Explain the difference to Joe. (b) What is an important feature of a cost accounting system? 2.…
- 546 Words
- 3 Pages
Satisfactory Essays -
Through the execution order used by the scheduling algorithm the TT (turnaround time; time taken for each process to complete) can be optimized, in that processing tasks with a smaller execution time first leads to better overall TT.…
- 2087 Words
- 9 Pages
Good Essays -
b. Determine the maximum cycle time in seconds for a desired output of 500 units in a 7-hour day. Why might a manager use a cycle time of 50 seconds?…
- 648 Words
- 3 Pages
Good Essays -
February 2013 ACCT 102 Managerial Accounting Oil Refinery: A Typical Example for the use of Process Costing Objectives ☯To understand what is process costing ☯To understand the physical flow and basic entries in a process costing system ☯To be able to calculate the production cost able in a process costing system by using the the Weighted Average method 1 Comparison of Job-Order Costing and Process Costing JobJob-order costing The oil refining process starts with a fractional distillation column. Typical Application of Process Costing Process Costing Process costing Job-Order Job-order…
- 6551 Words
- 27 Pages
Satisfactory Essays