GeekInterview.com
Series: Subject: Topic:
Question: 72 of 143

What is the difference between synchronization and mutual exclusion?

Asked by: Interview Candidate | Asked on: Jul 15th, 2006
Showing Answers 1 - 2 of 2 Answers
rakesh trichy

Answered On : Oct 11th, 2008

View all answers by rakesh trichy

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.


  
Login to rate this answer.
Jared Southern

Answered On : 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

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.