System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2641: The Windows kernel automatically handles ________ of worker subtasks to processors.
- A: scheduling
- B: merging
- C: debugging
- D: serialization
View Answer
A
Q2642: A thread is an ________ unit.
- A: execution
- B: memory
- C: storage
- D: process
View Answer
A
Q2643: In multithreading, a single procedure can have ________ threads.
- A: one
- B: several
- C: no
- D: two
View Answer
B
Q2644: Each thread needs data that is ________ and not shared with other threads.
- A: unique
- B: common
- C: static
- D: global
View Answer
A
Q2645: To create a thread with unique data, the creating thread uses the ________ function.
- A: CreateThread
- B: BeginThread
- C: ExitThread
- D: WaitForSingleObject
View Answer
A
Q2646: The parameter lpvThreadParm points to a ________ structure unique for each thread.
- A: data
- B: process
- C: global
- D: shared
View Answer
A
Q2647: Thread Local Storage (TLS) provides each thread with an ________ of pointers.
- A: array
- B: stack
- C: buffer
- D: list
View Answer
A
Q2648: In the TLS arrangement, columns correspond to ________.
- A: thread numbers
- B: TLS indexes
- C: functions
- D: processes
View Answer
A
Q2649: TLS index rows can be allocated and deallocated ________.
- A: only once
- B: at any time
- C: never
- D: once per thread
View Answer
B
Q2650: Every thread can access TLS, but the ________ thread is a logical choice for TLS management.
- A: primary
- B: secondary
- C: worker
- D: helper
View Answer
A