adplus-dvertising
frame-decoration

Question

What is the difference between a mutex and a critical section in multithreaded programming?

a.

A critical section is process private, while a mutex is not

b.

A critical section is an optimized implementation of a semaphore

c.

A critical section is logically identical to a mutex, but it is implemented in user mode

d.

A critical section is a user-defined counter that defines how many simultaneous owners are allowed on it

Posted under Reverse Engineering

Answer: (c).A critical section is logically identical to a mutex, but it is implemented in user mode Explanation:A critical section is essentially an optimized implementation of a mutex. It is logically identical to a mutex, but with the difference that it is process private and that most of it is implemented in user mode.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the difference between a mutex and a critical section in multithreaded programming?