This small section covers book chapter 27, a relatively small chapter that discusses the POSIX threads API for creating and working with threads. Start with the introduction and section 27.1, about creating threads.
True or False: Unlike in the process API where we could wait for any of our process children to finish, in the thread API we have to wait for a specific thread to finish.
True or False: Some programs like web servers may start threads but never wait for them to finish. For example worker threads that are perpetually given tasks to do from the main thread.
Study the code blocks at the bottom of page 7 and the top of page 8. The first block appears to wait forever within the lock block until ready == 0. The second block sets ready = 1 inside a lock block. How will this second block ever get to do its job if the first block is already holding the lock?