Westonci.ca is the ultimate Q&A platform, offering detailed and reliable answers from a knowledgeable community. Connect with a community of experts ready to provide precise solutions to your questions quickly and accurately. Get quick and reliable solutions to your questions from a community of experienced experts on our 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