Soalan Cpu Real
Soalan Cpu Real
6. There are two types of scheduling which are preemptive and non-preemptive
Answer : True
“ amount of time it takes from when a request was submitted until the first response is
produced “
- Response time *
- Waiting time
- Turnaround time
- Throughput
- CPU utilization
C) Max throughput
Max waiting time
Min turnaround time
Min CPU utilization
Min response time
15. In FCFS Scheduling (non preemptive) based on Process and Burst Time given:
Calculate:
-Waiting time
- Average waiting time
Process Burst Time (millisecond)
P1 20
P2 5
P3 3
A) Waiting Time P1 :1
Waiting Time P2 : 20
Waiting Time P3 : 25
Calculate:
- Turnaround time
- Average turnaround time
Process Burst Time (millisecond)
P1 20
P2 5
P3 3
Answer : A
18.In SJF Scheduling (nonpreemptive) based on Process and Burst Time given:
Calculate:
- Waiting time
- Average waiting time
Calculate:
- Waiting time
- Average waiting time
20. In Priority Scheduling (nonpreemptive) based on Process, Burst Time and Priority given:
Calculate:
- Turnaround time
- Average turnaround time
A) Turnaround time:
P1=24
P2=5
P3=26
P4=31
P5=13