diff b/w spinlock, seamaphores and mutex and where to use it.

Answer Posted / raghava

mainly spinlock used in threads to avoid synchronization,where as semaphore and mutex used to avoid process synchronization.
1.spinlock is something like polling.it spins for resouce until aloocated resouce releases.
2.binary semaphore and mutex are similar.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are system calls used for process management in linux?

585


I would like to know whether Simado and Setu products are they EPBX or not ?

1933


what are different ways the context switch happens from user to kernel space or vice-versa ?

2140


Explain process management system calls in linux?

550