Operating System Test 2 Computer Subject
Operating System Test 2 Computer Subject
Question 21
The Banker's Algorithm is an example of a technique for _____?
Banker's algorithm ensures the system stays in a safe state, making it a deadlock avoidance technique.
Not clear enough?
Question 22
If preemption is required to deal with deadlocks, then which statement must be addressed?
Efficient deadlock handling requires selecting a victim with minimum cost and rolling it back safely without causing starvation.
Not clear enough?
Question 23
A cycle in the resource allocation graph _____ leads to a deadlock.
A cycle in the resource allocation graph indicates the possibility of a deadlock, but it may not always lead to one.
Not clear enough?
Question 24
Inter-process communication _____?
IPC allows processes to share data and synchronize activities, essential for coordination in operating systems.
Not clear enough?
Question 25
Consider the following three processes in the FCFS, What is the average waiting time?
| Process ID | Burst time | Arrival time |
|---|---|---|
| P1 | 3 | 3 |
| P2 | 6 | 6 |
| P3 | 9 | 9 |
Using FCFS scheduling, the average waiting time for these three processes is calculated as 3 units.
Not clear enough?
Question 26
To access the services of operating system, the interface is provided by the _____?
System calls provide the interface for programs to request services from the operating system.
Not clear enough?
Question 27
Which conditions must be satisfied to solve a critical section problem?
All three conditions are necessary to solve the critical section problem.
Not clear enough?
Question 28
Which one of the following error will be handle by the operating system?
The operating system handles all such errors by notifying the user or taking corrective action.
Not clear enough?
Question 29
Which of the following operating system runs on the server?
Network operating systems are designed to manage and run services on servers.
Not clear enough?
Question 30
What is the main function of the command interpreter?
The command interpreter reads and executes commands entered by the user.
