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.

25 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

SRTN stands for

  1. shortest remaining time next
  2. smallest remaining time next
  3. shortest routing time next
  4. shortest remaining task next
Question 2 Multiple Choice (Single Answer)

FCFS stands for

  1. first-come-first served
  2. first-come-fast-served
  3. fast-come-first-served
  4. none of these
Question 3 Multiple Choice (Single Answer)

________ scheduling is an algorithm in which the next job is selected on the basis of the shortest remaining execution time.

  1. First-come first-served
  2. Shortest remaining time next
  3. Time-slice
  4. Priority-based preemptive
Question 4 Multiple Choice (Single Answer)

SJF stands for

  1. smallest job first
  2. smallest job fast
  3. shortest job first
  4. shortest job fast
Question 5 Multiple Choice (Single Answer)

Time slicing is also known as

  1. round robin
  2. raw robin
  3. route robin
  4. none of these
Question 6 Multiple Choice (Single Answer)

RR stands for

  1. round robin
  2. raw robin
  3. route robin
  4. none of these
Question 7 Multiple Choice (Single Answer)

_____ scheduler schedules for executing a ready process by the earliest deadline.

  1. Earliest deadline
  2. Least laxity
  3. Least slack
  4. None of these
Question 8 Multiple Choice (Single Answer)

MLQ stands for

  1. multiple level queues
  2. many level queues
  3. multiple last queues
  4. none of these
Question 9 Multiple Choice (Single Answer)

Inter-process _____ is the exchange of timing signals among concurrent processes.

  1. synchronization
  2. signaling
  3. communication
  4. none of these
Question 10 Multiple Choice (Single Answer)

_____ simulation(s) use(s), as input, a trace of actual events collected and recorded on a real system.

  1. A trace-driven
  2. A self-driven
  3. Both 1 and 2
  4. None of these
Question 11 Multiple Choice (Single Answer)

Inter-process _____ is a set of protocols and mechanisms used to preserve system integrity and consistency.

  1. synchronization
  2. signaling
  3. communication
  4. none of these
Question 12 Multiple Choice (Single Answer)

_____ simulation(s) use(s) a synthetic workload that is artificially generated to resemble the expected conditions in the target system.

  1. A trace-driven
  2. A self-driven
  3. Both 1 and 2
  4. None of these
Question 13 Multiple Choice (Single Answer)

Least laxity scheduler is also known as _____ scheduler.

  1. earliest deadline
  2. least slack
  3. fastest slack
  4. none of these
Question 14 Multiple Choice (Single Answer)

Inter-process _____ is used for exchanging data.

  1. synchronization
  2. signaling
  3. communication
  4. none of these
Question 15 Multiple Choice (Single Answer)

SJF is the _____ version of SRTN.

  1. preemptive
  2. non-preemptive
  3. contiguous
  4. none of these
Question 16 Multiple Choice (Single Answer)

The _____ is a sequence of instructions with a clearly marked beginning and end.

  1. critical section
  2. critical segment
  3. critical part
  4. none of these
Question 17 Multiple Choice (Single Answer)

A single process that temporarily excludes all others from using a shared resource, in order to ensure system's integrity is called the _______.

  1. critical section
  2. mutual exclusion
  3. semaphore
  4. none of these
Question 18 Multiple Choice (Single Answer)

____ decrement(s) the value of its/their argument semaphore.

  1. SIGNAL
  2. WAIT
  3. Both 1 and 2
  4. None of these
Question 19 Multiple Choice (Single Answer)

_____ increment(s) the value of its/their argument semaphore.

  1. SIGNAL
  2. WAIT
  3. Both 1 and 2
  4. None of these
Question 20 Multiple Choice (Single Answer)

____ is another primitive operation of the semaphore

  1. BUSY
  2. HALT
  3. WAIT
  4. None of these
Question 21 Multiple Choice (Single Answer)

A semaphore whose variable is allowed to take on only the values of 0 and 1 is called ____ semaphore.

  1. binary
  2. unary
  3. general
  4. none of these
Question 22 Multiple Choice (Single Answer)

A ____ semaphore may take any integer value.

  1. binary
  2. unary
  3. general
  4. none of these
Question 23 Multiple Choice (Single Answer)

____ instruction(s) is/are intended for direct hardware support of mutual exclusion.

  1. Test and set
  2. Set and test
  3. Both 1 and 2
  4. None of these
Question 24 Multiple Choice (Single Answer)

_____ is one of the primitive operations of semaphore.

  1. SIGNAL
  2. BUSY
  3. HALT
  4. None of these
Question 25 Multiple Choice (Single Answer)

A _____ is a mechanism for mutual exclusion.

  1. critical section
  2. mutual exclusion
  3. semaphore
  4. none of these