Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between semaphore and spinlock?



What is the difference between semaphore and spinlock?..

Answer / sandeep

Spinlock is a busy wait. Semaphore is a sleep wait.
Spinlocks are used to get exclusive access to critical
section whereas semaphores are used for exclusive access and
also to synchronize processes and threads.
Spin locks are used when the critical sections it is
protecting is small and are held for a short time.
Semaphores can be held for longer time. Semaphores use spin
locks to access its control structures.
Spinlocks are kernel locking mechanism where as semaphores
are used in both kernel and user space.
Semaphores should not be used in interrupt handlers since
the code sleeps if the semaphore is not acquired.

Is This Answer Correct ?    7 Yes 0 No

Post New Answer

More Linux AllOther Interview Questions

how can i make an user to nologin without locking the account for the user

7 Answers   CSS, CSS Corp,


how can i create samba server in fedora 9.0 ? and domain/LDAP controller! clilent side is windows pc .?

0 Answers   Wipro,


What is the name and path of the main system log?

3 Answers  


What are main anti-spam features available in sendmail?

1 Answers   CSC,


expalin the process of kickstart installation?

1 Answers   HCL, IBM,


What are the questions we are expecting for 2yrs. experience guy for linux company interview questions?

1 Answers  


in linux gui desktop icon was lost how con u back this icons

2 Answers  


What is LILO?

11 Answers   Cisco,


How to apply patch for multiple servers .

1 Answers   IBM,


what is difference between  TFTP abd FTP?

0 Answers  


How do i check which nfs version I am using ????????

9 Answers   CybAge, IBM,


What text filter can you use to display a binary file in octal numbers?

1 Answers  


Categories