Os Assignment 1
Os Assignment 1
Short Questions
Q.2
Define an operating system and its main functions.
1
2 Explain the difference between a batch processing system and a time-sharing system.
What is a kernel in the context of an operating system?
3
Describe the role of system calls in an operating system.
4
Define the term "process" in the context of operating systems.
5
Explain the difference between a process and a thread.
6
What is the role of the kernel in an operating system?
7
Describe the concept of virtual memory.
8
Long Questions
Q.3
Consider the following set of processes, with the arrival times and the CPU-burst times given
1
in milliseconds.
Process Priority Burst Time
P1 1 4
P2 2 3
P3 1 7
P4 3 4
P5 2 2
Find average turn around time, average waiting time, average response time.
An operating system uses the Shortest Remaining Time First (SRTF) process scheduling
2
algorithm. Consider the arrival times and execution times for the following processes:
P1 20 ms 0 ms
P2 25 ms 15 ms
P3 10 ms 30 ms
P4 15 ms 45 ms
Consider the following table of arrival time and burst time for three processes P1, P2, and
3
P3, and given Time Quantum = 3 units
Process Burst Time
P1 7
P2 4
P3 9
Find completion time, Turn Around time , Response time, Waiting time.
Consider the given table below and find Completion time (CT), Turn-around time (TAT),
4
Waiting time (WT), Response time (RT), Average Turn-around time and Average Waiting
time. Apply FCFS.
Process ID Arrival time Burst time
P1 2 2
P2 5 6
P3 0 4
P4 0 7
P5 7 4