Question: Three processes, Process 1, Process 2, and Process 3, are sharing a resource, Resource 1, in a mutually exclusive manner. Using test and set instruction,
Three processes, Process 1, Process 2, and Process 3, are sharing a resource, Resource 1, in a mutually exclusive manner. Using test and set instruction, show code for Process 1, Process 2, and Process 3 that shows the entry section and exit section. Using this code, show a scenario if all three processes want to enter their critical sections.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
