Buscar

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.

Essa pergunta também está no material:

Sistemas Distribuídos e Computação Paralela - Tema 02
65 pág.

Empreendedorismo Universidade Norte do ParanáUniversidade Norte do Paraná

💡 1 Resposta

User badge image

Ed Verified user icon

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
Dislike0

✏️ Responder

SetasNegritoItálicoSublinhadoTachadoCitaçãoCódigoLista numeradaLista com marcadoresSubscritoSobrescritoDiminuir recuoAumentar recuoCor da fonteCor de fundoAlinhamentoLimparInserir linkImagemFórmula

Para escrever sua resposta aqui, entre ou crie uma conta

User badge image

Outros materiais