Question: (b) Sync for P1 and P2 to create P3 and on: Another simple sync mechanism similar to the one above but now across many

(b) Sync for P1 and P2 to create P3 and on: Another simple sync mechanism similar to the one above but now across many more threads is used to make sure that kernel threads P3 and on are created without any racing or deadlock. Answer the following questions regarding the synchronization mechanism used in creat- ing P3. Hints: P3 is created by kthread_create_on_node(). Look for complete. 1. What is the global variable for the sync. 2. Where is the synchronization struct declared? Show the state- ment. 3. Which thread is spinning/waiting on the sync structure? 4. Show the spinning statement. 5. Which thread completes the sync? 6. Show the statement that completes the sync.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
