COS3721 Chapter 4 Exam Questions And
Answers 100% Verified And Updated.
1. ____ is a thread library for Solaris that maps many user-level threads to one kernel thread.
A) Pthreads
B) Green threads
C) Sthreads
D) Java threads - Answer✔B
2. Pthreads refers to ____.
A) the POSIX standard.
B) an implementation for thread behavior.
C) a specification for thread behavior.
D) an API for process creation and synchronization. - Answer✔C
3. The ____ multithreading model multiplexes many user-level threads to a smaller or equal
number of kernel threads.
A) many-to-one model
B) one-to-one model
C) many-to-many model
D) many-to-some model - Answer✔C
4. Cancellation points are associated with ____ cancellation.
A) asynchronous
B) deferred
C) synchronous
D) non-deferred - Answer✔B
5. Which of the following would be an acceptable signal handling scheme for a multithreaded
program?
1|Page
, ©FYNDLAY 2024/2025 ALL RIGHTS RESERVED.
A) Deliver the signal to the thread to which the signal applies.
B) Deliver the signal to every thread in the process.
C) Deliver the signal to only certain threads in the process.
D) All of the above - Answer✔D
6. Signals can be emulated in windows through ____.
A) asynchronous procedure calls
B) local procedure calls
C) remote procedure calls
D) none of the above - Answer✔A
7. Thread-local storage is data that ____.
A) is not associated with any process
B) has been modified by the thread, but not yet updated to the parent process
C) is generated by the thread independent of the thread's process
D) is unique to each thread - Answer✔D
8. LWP is ____.
A) short for lightweight processor
B) placed between system and kernel threads
C) placed between user and kernel threads
D) common in systems implementing one-to-one multithreading models - Answer✔C
9. Windows uses the ____.
A) one-to-one model
B) many-to-one model
C) one-to many-model
D) many-to-many model - Answer✔A
10. In multithreaded programs, the kernel informs an application about certain events using a
procedure known as a(n) ____.
A) signal
B) upcall
C) event handler
2|Page