What is a critical region? How do they relate to controlling access to shared resources?
Answer:
-A critical region is a section of code that essentially contains a variable(s) that can be accessed by multiple threads but will affect the operation of the entire program, or system. Correctness relies on critical regions not being modified by two or more different processes at the same time