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 |
why you are using nis server
My root password has been changed, how can i enter into the system without root password?
Through ssh whole directory structure from / is shared regardless the user we have connected with ....... how do i prevent sharing ??
What is the name and path of the main system log?
How to apply patch for multiple servers .
how do i check which package has installed some command suppose ls , mkdir or whatever ???
commands regarding the adding of users into groups n different options with useradd...?
what is NIS Server...?
In how many ways linux can be installed n explain th steps involved in installation in any of the method..?
As a system admin i want to know some things what are the troubleshooting issues we are facing frequently and what are the tickets will be raised.
How to ""Add"" not replace address to same network card other than the alias way.... ??????
How to findout, if the user is local user or NIS user in the Linux (RHEL)?