What is the purpose of a mutex in programming?
A mutex is used to ensure mutual exclusion to the critical section of code.
A mutex is used to ensu...
What is the purpose of a mutex in programming?
A mutex is used to ensure mutual exclusion to the critical section of code. A mutex is used to ensure that all threads can execute the critical section of code simultaneously. A mutex is used to ensure that only one thread can execute the entire program at a time. a) Only statement A is correct. b) Statements A and B are correct. c) Statements A and C are correct.
A resposta correta é a alternativa A) A mutex is used to ensure mutual exclusion to the critical section of code. Um mutex é usado para garantir exclusão mútua na seção crítica do código, ou seja, para garantir que apenas um thread possa acessar essa seção por vez.
0
0
✏️ Responder
Para escrever sua resposta aqui, entre ou crie uma conta
Compartilhar