Get reliable answers to your questions at Westonci.ca, where our knowledgeable community is always ready to help. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

What is the primary purpose of a mutex in multithreading?
Group of answer choices
O To wait on a condition variable
O To create a new thread
O To lock a critical section to achieve mutual exclusion
O To destroy a thread