Question - What is synchronization? What are the different synchronization mechanisms?
Answer -
Synchronization means controlling access to a resource that is available to two or more threads or process. Different synchronization mechanisms are:
- Mutex
- Semaphores
- Monitors
- Condition variables
- Critical regions
- Read/ Write locks