Question: Chapter 4 Review: Treads & Concurrency Directions: Read each question carefully. Answer each question in your own words. 1. Provide at least three benefits of
Chapter 4 Review: Treads & Concurrency
Directions: Read each question carefully. Answer each question in your own words.
1. Provide at least three benefits of multithreaded programming.
2. True or False? Concurrency is only possible with parallelism.
3. What are the two general types of parallelism?
4. List the three common ways of mapping user threads to kernel threads.
5. What are the two approaches for implementing a thread library?
6. What are the three main thread libraries in use?
7. What is the PThread API for creating a thread?
8. What is the Windows API for creating a thread?
9. Provide at least two techniques for supporting implicit threading.
10. What are the two scenarios for canceling a target thread?
11. What is the PThreads API for thread cancellation?
12. True or False? Windows threads provide both user and kernel stacks.
13. What term does Linux use to refer to a process or a thread?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
