Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
f) clear memory
Assignment 2
1. How do "kernel mode" (or "supervisor mode") and "user mode" instructions differ?
4. Explain the need to separate the command interpreter from the kernel.
The processes are assumed to have arrived in the order P1,P2, P3, P4, P5 all at time 0.
a). Draw four gantt charts illustrating the execution of these processes using FCFS,
SJF, a non-preemptive priority (a smaller priority number implies a higher priority),
and RR(quantum = 1) scheduling.
b). What is the turn around time of each process for each of the scheduling
algorithms in part (a)?
c). what is the waiting time of each process for each of the scheduling algorithms in
part (a)?
d). Explain the evaluation of each algorithm.
5. Consider the following set of processes, with the length of the CPU-burst time given in
milliseconds:
Process Burst Time
P1 20
P2 7
P3 4
Calculate the average waiting time if the processes arrived in the following order:
a) P1, P2, P3 b) P2, P3, P1 c) P3,P1, P2
Assignment 6
Tutorial 1
1. Write down the major difference between following types of operating systems:
3) Time-sharing system
4. What is an operating system? How does an operating system take control over a
computer system?
Tutorial 2
Tutorial 3
Tutorial 4
Tutorial 5
1. Consider the following set of processes, with the length of the CPU-burst time given in
milliseconds:
Process Burst Time Arrival Time
P1 10 0
P2 2 1
P3 4 2
P4 5 3
2. Consider the following set of processes, with the length of the CPU-burst time given in
milliseconds:
The processes are assumed to have arrived in the order P1,P2, P3, P4, P5 all at time 0.
Using priority scheduling, calculate average waiting time.
3. Consider the following set of processes, with the length of the CPU-burst time given in
milliseconds: