I would like to initiate a discussion on the necessity of monitors in concurrent programming when, in essence, one could potentially replace them entirely with a combination of mutexes and condition variables.
Considering that mutexes and condition variables can, with sufficient effort, replicate the functionality of monitors, one may question the need for monitors in concurrent programming. Are there specific scenarios or advantages where monitors excel over the use of mutexes and condition variables separately?
post about the difference between a monitor and a mutex + conditional variable
gsagagsa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2