System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3911: Processor affinity refers to
- A: binding a thread to a specific processor
- B: allowing a thread to run on any processor
- C: letting the OS decide thread scheduling
- D: assigning all threads to one processor
View Answer
A
Q3912: The main goal of processor affinity
- A: is to schedule threads on specific CPU cores
- B: to run threads randomly
- C: to maximize thread migration
- D: to disable threading
View Answer
A
Q3913: Assigning processor affinity can help minimize
- A: delay caused due to memory barriers
- B: increase thread migration
- C: delays in I/O operations
- D: decrease CPU speed
View Answer
A
Q3914: Processor affinity can be used to dedicate
- A: a processor to a small set of threads
- B: all threads to one processor
- C: disable threads
- D: enable hyper-threading
View Answer
A
Q3915: Windows can still schedule its own threads
- A: on a processor with affinity
- B: on all processors except affinity processors
- C: only on affinity processors
- D: nowhere
View Answer
A
Q3916: Processor affinity is useful for
- A: testing specific processor cores
- B: ignoring thread synchronization
- C: improving network speed
- D: disabling multitasking
View Answer
A
Q3917: Worker threads contending for a single resource
- A: can be allocated to a single processor
- B: should be spread across all processors
- C: are not affected by affinity
- D: should avoid affinity
View Answer
A
Q3918: Processor affinity can effectively reduce
- A: cache issues
- B: memory leaks
- C: network latency
- D: disk I/O delays
View Answer
A
Q3919: Binding a thread to a processor core is also called
- A: processor affinity
- B: thread pinning
- C: thread pooling
- D: thread scheduling
View Answer
A
Q3920: Processor affinity setting can be used for
- A: diagnostic purposes
- B: thread creation
- C: resource locking
- D: thread termination
View Answer
A