System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3541: False sharing leads to ______ access of elements in the array.
- A: parallel
- B: independent
- C: random
- D: serial
View Answer
D
Q3542: The alignment of each variable to its own cache line is a solution to ______.
- A: cache overflow
- B: cache coherence
- C: false sharing
- D: contention management
View Answer
C
Q3543: When variables share the same address line across different threads, ______ can occur.
- A: thread blocking
- B: false sharing
- C: data loss
- D: cache hit
View Answer
B
Q3544: False sharing results in ______ performance.
- A: improved
- B: stable
- C: degraded
- D: unaffected
View Answer
C
Q3545: False sharing can be minimized by ______.
- A: overclocking the CPU
- B: sharing memory addresses
- C: duplicating variables
- D: using padding or alignment
View Answer
D
Q3546: What happens if two threads modify variables on the same cache line?
- A: Only the first thread can proceed
- B: Both threads are blocked
- C: False sharing occurs
- D: System locks down
View Answer
C
Q3547: One major drawback of cache line alignment is ______.
- A: reduced speed
- B: increased memory usage
- C: complex code syntax
- D: thread count reduction
View Answer
B
Q3548: When a cache line is locked, other elements on the same line are accessed ______.
- A: simultaneously
- B: in parallel
- C: serially
- D: concurrently
View Answer
C
Q3549: False sharing mainly affects systems using ______.
- A: HDD storage
- B: GPU cache
- C: CPU cache
- D: Optical drives
View Answer
C
Q3550: Variables placed on the same cache line by different threads may cause ______.
- A: cache miss
- B: thread starvation
- C: false sharing
- D: thread collision
View Answer
C