System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3741: Synchronization in thread pool callback functions is still necessary because multiple threads may _______.
- A: access shared resources
- B: run simultaneously
- C: wait indefinitely
- D: be created repeatedly
View Answer
A
Q3742: Callbacks are an efficient alternative to _______.
- A: threading
- B: memory allocation
- C: file I/O
- D: database queries
View Answer
A
Q3743: Basic Windows programming uses _______ functions primitively to simulate threading.
- A: callback
- B: pointers
- C: loops
- D: variables
View Answer
A
Q3744: The header file included for this thread pool example is _______.
- A: Everything.h
- B: Windows.h
- C: Threadpool.h
- D: Process.h
View Answer
A
Q3745: The macro DELAY_COUNT is set to _______.
- A: 20
- B: 64
- C: 10
- D: 5
View Answer
A
Q3746: The CACHE_LINE_SIZE is defined as _______.
- A: 64
- B: 20
- C: 32
- D: 128
View Answer
A
Q3747: In the program, nThread represents the number of _______.
- A: worker threads
- B: tasks
- C: cpu cores
- D: memory blocks
View Answer
A
Q3748: tasksPerThread refers to the number of _______ assigned to each thread.
- A: work units
- B: memory blocks
- C: locks
- D: processes
View Answer
A
Q3749: The SRWLOCK slimRWL is used to manage _______.
- A: thread synchronization
- B: thread creation
- C: memory allocation
- D: thread termination
View Answer
A
Q3750: The THARG struct contains the member _______ to track tasks completed.
- A: tasksComplete
- B: tasksToComplete
- C: objectNumber
- D: slimRWL
View Answer
A