System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3501: Mutex-based synchronization costs increased up to ______ compared to interlocked functions.
- A: 5 times
- B: 10 times
- C: 30 times
- D: 50 times
View Answer
C
Q3502: Critical Section versions are ______ compared to no synchronization.
- A: slower
- B: faster
- C: same
- D: optimized
View Answer
A
Q3503: IN stands for ______ in synchronization scenarios.
- A: Internal Node
- B: Interlocked Function
- C: Input/Output
- D: Null Function
View Answer
B
Q3504: ________ are used to synchronize threads while trying to reduce memory contention.
- A: Semaphores
- B: Mutexes
- C: declspec(align)
- D: Heap handles
View Answer
C
Q3505: align_free() is used to ______ memory.
- A: lock
- B: measure
- C: deallocate
- D: access
View Answer
C
Q3506: To gauge synchronization performance, we analyze ______.
- A: thread size
- B: lock duration
- C: real time, user time, system time
- D: loop count
View Answer
C
Q3507: Critical Sections are ______ expensive than Mutexes.
- A: more
- B: equally
- C: less
- D: sometimes
View Answer
C
Q3508: Mutexes perform worse as the number of ______ increases.
- A: variables
- B: memory segments
- C: processors
- D: files
View Answer
C
Q3509: Mutexes degrade rapidly in performance compared to CS when increasing ______.
- A: RAM
- B: clock rate
- C: thread priority
- D: processor count
View Answer
D
Q3510: One way to avoid cache conflict is to ______ memory allocation.
- A: randomize
- B: align
- C: optimize
- D: encrypt
View Answer
B