Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3561: When the lock bit is off, it indicates that ______.
  • A: thread is terminated
  • B: Critical Section is busy
  • C: no thread is inside CS
  • D: the system is idle
View Answer
C

Q3562: Locking and unlocking in Critical Section require ______.
  • A: OS interrupts
  • B: memory swap
  • C: few machine-level instructions
  • D: page faults
View Answer
C

Q3563: Recursive call status and thread ID are stored in ______.
  • A: thread context
  • B: CS data structure
  • C: system stack
  • D: user stack
View Answer
B

Q3564: If the lock bit is already set, the thread enters ______.
  • A: sleep state
  • B: critical memory
  • C: tight loop
  • D: wait queue
View Answer
C

Q3565: Tight loop repeatedly checks the ______.
  • A: stack size
  • B: cache size
  • C: lock bit
  • D: processor status
View Answer
C

Q3566: Spin count controls how many times ______ is checked.
  • A: thread ID
  • B: thread count
  • C: lock bit
  • D: mutex ID
View Answer
C

Q3567: If the thread exceeds the spin count, it calls ______.
  • A: TerminateThread()
  • B: WaitForSingleObject()
  • C: ReleaseMutex()
  • D: ThreadSleep()
View Answer
B

Q3568: Spin count is especially useful in ______ systems.
  • A: single processor
  • B: multiprocessor
  • C: networked
  • D: graphical
View Answer
B

Q3569: LeaveCriticalSection() performs which of the following actions?
  • A: turns on lock bit
  • B: reboots system
  • C: turns off lock bit
  • D: starts mutex
View Answer
B

Q3570: Which function notifies the kernel if there are waiting threads?
  • A: WaitForSingleObject()
  • B: ReleaseMutex()
  • C: ReleaseSemaphore()
  • D: ResetEvent()
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now