Government Engineering College, Bhavnagar
Information Technology Department
Subject: Operating System & Virtualization
Question Bank
Q.No. Question CO
1. What is operating system? Give the view of OS as a resource manager CO-1
2. Explain different services provided by operating system. CO-1
3. Write different types of system calls? CO-2
4. Define following Terms: Mutual Exclusion ,Thrashing , Thread CO-2
5. List the four events that cause processes to be created. Explain each in brief. CO-2
6. What is PCB? Discuss its major fields. CO-2
7. Draw process state diagram. Explain each transition among them in detail. CO-2
8. Explain context switching. CO-2
9. What is scheduler? Explain queuing diagram representation of process CO-2
scheduler.
10. Define the following terms. 1. Throughput 2. Waiting Time 3. Turnaround CO-2
Time 4. Response Time
11. What is interrupt? How it is handle by operating system CO-2
12. Differentiate between preemptive and non-preemptive scheduling. Solve CO-2
following by SJF preemptive and non-preemptive. Draw Gantt Chart, Average
Waiting Time and Average Turnaround Time. Which one is better as per
average turnaround time?
13. Consider the following set of processes, with the length of the CPU-burst time CO-2
given in milliseconds:
For each of the scheduling algorithms, FCFS, Shortest-Job-First (SJF,
nonpreemptive), Priority (smaller priority number implies higher scheduling
priority), and RR (quantum = 1) do the following: a. Draw a Gantt chart to
show how these processes would be scheduled. b. Give the turnaround time
(total time from first arrival into ready state until cpu-burst is completed) of
each process. c. Give the waiting time (total time spent in the Ready state) of
each process. d. Give the average waiting time of all the processes. Which of
these scheduling algorithm gives the smallest average waiting Time?
14. What is thread? Explain thread Structure? And explain any one type of thread in CO-2
details
15. Write a short note on Critical Section CO-3
17. Explain Mutual Exclusion in brief CO-3
18. CO-6
Explain the following UNIX Commands (a) grep (b) chmod (c) finger
19. Write a Shell script to find Factorial of a given number. CO-6
20. Write a shell script which displays the content of all files given as command CO-6
line arguments with appropriate heading. It should also give the name of file
which are not readable.