What is the difference between synchronization and mutual exclusion?

Showing Answers 1 - 2 of 2 Answers

Mutual Exclusion:

1. Lock and unlock operations are always performed by the same thread.
2. Thread blocked on semaphore cannot be awakened by a signal.


Synchronization:


1. Lock and unlock operations performed by different threads.
2. Threads blocked on a synchronization semaphore have three options:
a) Signals can be caught and handled.
b) Signals can be deferred until the semaphore operation is complete.
c) Signals can be handled as though the code were unsemaphored.


  Was this answer useful?  Yes

Jared Southern

  • Sep 23rd, 2011
 

As I understand it, and I'm just revising it, Conditional synchronisation is the mechanism that allows one to achieve mutual exclusion in a program.
Regards
Jared

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Answer Question

Click here to Login / Register your free account


 
Send   Reset

 

Related Answered Questions

 

Related Open Questions