Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3551: In false sharing contention, a change in one variable will lock the ______.
  • A: thread
  • B: address only
  • C: entire cache line
  • D: registers
View Answer
C

Q3552: Which of the following is a direct solution to false sharing?
  • A: Cache flushing
  • B: Multithreading
  • C: Variable alignment
  • D: Buffer pooling
View Answer
C

Q3553: False sharing can occur when threads ______.
  • A: share registers
  • B: write to different cache lines
  • C: access variables on the same cache line
  • D: read from disk
View Answer
C

Q3554: False sharing is less of an issue when each thread works with ______.
  • A: shared memory
  • B: separate cache lines
  • C: same cache
  • D: single core
View Answer
B

Q3555: To avoid false sharing, variables should be aligned ______.
  • A: in the same thread
  • B: randomly
  • C: separately
  • D: per processor
View Answer
C

Q3556: What is used to optimize the overhead of Critical Sections?
  • A: Thread pool
  • B: Spin count
  • C: Mutex recursion
  • D: Process priority
View Answer
B

Q3557: Critical Section operates in ______.
  • A: kernel space
  • B: user space
  • C: system cache
  • D: shared memory
View Answer
B

Q3558: Which function is used to enter a Critical Section?
  • A: EnterThread()
  • B: WaitForLock()
  • C: EnterCriticalSection()
  • D: WaitObject()
View Answer
C

Q3559: Mutexes require ______ for locking and unlocking.
  • A: hardware interrupts
  • B: system calls
  • C: cache coherence
  • D: thread duplication
View Answer
B

Q3560: The lock bit is set when ______.
  • A: thread priority increases
  • B: thread finishes
  • C: another thread enters
  • D: EnterCriticalSection() is called
View Answer
D

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now