Question

What is a critical section in the context of synchronization?

A A section of code that must be executed by multiple threads simultaneously Correct Answer Incorrect Answer
B A section of code that needs to be synchronized to prevent concurrent access by multiple threads Correct Answer Incorrect Answer
C A section of code that is not important for synchronization Correct Answer Incorrect Answer
D A section of code that is only executed once in a program Correct Answer Incorrect Answer

Solution

A section of code that needs to be synchronized to prevent concurrent access by multiple threads

Practice Next

Relevant for Exams:

×
×