Home / MCQ Bank / Computer
Computer Multi Threading In C Plus Plus

What is the primary purpose of a mutex in C++ multi-threading?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • To provide mutual exclusion

Related Computer Questions

What is the primary function of the HBase Load Balancer? What will be the output of the following Java program? class Output { public static void main(String args[]) { int x = 3.14; int y = (int) Math.abs(x); System.out.print(y); } } HTML viruses infect: What will be the output of the following C code? #include<stdio.h> #define ram 557 int main() { #ifndef ram printf("yes"); #endif printf("no"); } What will be the output of the following Python code? i = 5 while True: if i%0O9 == 0: break print(i) i += 1