Which disk scheduling algorithm guarantees that each request gets serviced and prevents starvation?
C-SCAN
LOOK
SSTF
FCFS
In Linux, what does mounting a file system do?
Creates a temporary storage area
Deletes a file system from memory
Links a file system to a directory structure
Initiates file access for fast loading
What advantage does preemptive scheduling provide over non-preemptive scheduling?
It requires less CPU overhead.
It improves responsiveness in a multitasking environment.
It allows processes to run until completion without interruption.
It guarantees process completion.
Which of the following statements about mutex locks is true?
They can be locked multiple times by the same thread.
They can be used for condition variables.
They enable multiple threads to access a resource simultaneously.
Only one thread can own a mutex lock at a time.
What is the key difference between a virtual machine and a container?
Virtual machines run entire operating systems; containers run applications and their dependencies
Containers virtualize at the hardware level; virtual machines do not
Virtual machines share the host OS; containers do not
Containers are slower than virtual machines
What happens to a process when it calls the exit system call?
It enters the Blocked state
It is terminated and cannot be resumed
It waits for other processes to finish
It moves to the Ready state
What is the purpose of file attributes in an operating system?
To provide metadata about files
To execute files
To compress files
To create backups
Which of the following is an example of a multithreading issue that can lead to deadlock?
Two threads waiting for each other to release resources.
A thread exceeding its time slice.
A thread being starved of resources.
An improper context switch.
Which of the following is NOT one of the necessary conditions for a deadlock to occur?
Circular Wait
Hold and Wait
No Preemption
Mutual Exclusion
In the context of deadlock prevention, which strategy involves breaking one of the necessary conditions for deadlock?
Mutual exclusion
Circular wait
No preemption
Hold and wait