Which threading library provides a low-level API specifically optimized for multithreading in C?
Win32 Threads
Pthreads
OpenMP
Java Threads
Which algorithm is known for minimizing the average waiting time for a set of processes?
Shortest Job Next (SJN)
First-Come, First-Served (FCFS)
Round Robin (RR)
Multilevel Feedback Queue Scheduling
In deadlock prevention, which strategy ensures that at least one of the necessary conditions for deadlock cannot hold?
Allocating resources only when the process can obtain all it needs
Allowing preemption of resources
Allowing indefinite waiting for resource allocation
Ensuring processes request resources in a pre-defined order
Which of the following is a major benefit of using caching in an operating system?
Reduced latency for frequently accessed data
Simplified I/O operations
Increased disk space
Elimination of data redundancy
Which scheduling algorithm allows processes to share CPU time fairly?
Shortest Job First
First-Come, First-Served
Priority Scheduling
Round Robin
What is the main purpose of a process scheduler?
To manage memory allocation
To handle input/output operations
To perform context switching
To determine the execution order of processes
Which of the following is a method for achieving file system consistency after a crash?
Data Replication
Caching
Journaling
Disk Striping
Which of the following correctly defines a user-level thread?
A thread that is invisible to the user application.
A thread managed by the operating system kernel.
A thread created by the user application and managed in user space.
A thread that can only run on a single processor.
In CPU scheduling, what does the term 'throughput' refer to?
The time taken by the operating system to switch between processes.
The average time a process spends in the ready queue.
The total time taken from process creation to completion.
The number of processes that complete execution in a given time period.
What is a major advantage of using the Banker's Algorithm?
It increases resource utilization.
It guarantees safe resource allocation if possible.
It simplifies resource allocation logic.
It prevents starvation.