CPU Scheduling and Process Synchronization
Test your knowledge on CPU scheduling algorithms (FCFS, SJF, SRTN, Round Robin, MLQ), process synchronization (semaphores, mutual exclusion, critical sections), and inter-process communication mechanisms.
Questions
SRTN stands for
- shortest remaining time next
- smallest remaining time next
- shortest routing time next
- shortest remaining task next
FCFS stands for
- first-come-first served
- first-come-fast-served
- fast-come-first-served
- none of these
________ scheduling is an algorithm in which the next job is selected on the basis of the shortest remaining execution time.
- First-come first-served
- Shortest remaining time next
- Time-slice
- Priority-based preemptive
SJF stands for
- smallest job first
- smallest job fast
- shortest job first
- shortest job fast
Time slicing is also known as
- round robin
- raw robin
- route robin
- none of these
RR stands for
- round robin
- raw robin
- route robin
- none of these
_____ scheduler schedules for executing a ready process by the earliest deadline.
- Earliest deadline
- Least laxity
- Least slack
- None of these
MLQ stands for
- multiple level queues
- many level queues
- multiple last queues
- none of these
Inter-process _____ is the exchange of timing signals among concurrent processes.
- synchronization
- signaling
- communication
- none of these
_____ simulation(s) use(s), as input, a trace of actual events collected and recorded on a real system.
- A trace-driven
- A self-driven
- Both 1 and 2
- None of these
Inter-process _____ is a set of protocols and mechanisms used to preserve system integrity and consistency.
- synchronization
- signaling
- communication
- none of these
_____ simulation(s) use(s) a synthetic workload that is artificially generated to resemble the expected conditions in the target system.
- A trace-driven
- A self-driven
- Both 1 and 2
- None of these
Least laxity scheduler is also known as _____ scheduler.
- earliest deadline
- least slack
- fastest slack
- none of these
Inter-process _____ is used for exchanging data.
- synchronization
- signaling
- communication
- none of these
SJF is the _____ version of SRTN.
- preemptive
- non-preemptive
- contiguous
- none of these
The _____ is a sequence of instructions with a clearly marked beginning and end.
- critical section
- critical segment
- critical part
- none of these
A single process that temporarily excludes all others from using a shared resource, in order to ensure system's integrity is called the _______.
- critical section
- mutual exclusion
- semaphore
- none of these
____ decrement(s) the value of its/their argument semaphore.
- SIGNAL
- WAIT
- Both 1 and 2
- None of these
_____ increment(s) the value of its/their argument semaphore.
- SIGNAL
- WAIT
- Both 1 and 2
- None of these
____ is another primitive operation of the semaphore
- BUSY
- HALT
- WAIT
- None of these
A semaphore whose variable is allowed to take on only the values of 0 and 1 is called ____ semaphore.
- binary
- unary
- general
- none of these
A ____ semaphore may take any integer value.
- binary
- unary
- general
- none of these
____ instruction(s) is/are intended for direct hardware support of mutual exclusion.
- Test and set
- Set and test
- Both 1 and 2
- None of these
_____ is one of the primitive operations of semaphore.
- SIGNAL
- BUSY
- HALT
- None of these
A _____ is a mechanism for mutual exclusion.
- critical section
- mutual exclusion
- semaphore
- none of these