diff b/w spinlock, seamaphores and mutex and where to use it.
Answers were Sorted based on User's Feedback
Answer / kapil thakar
Spin lock used in kernel context. It will not allow the
process or thread to sleep.
While mutux and semaphore can go into sleep.
So this make the spin lock can be used in interrupt context
or interrupt.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
1. Where the History file can be located? 2. How will you harden the server? 3. Diff between Raid 1 and Raid 5? 4. What is the largest disk size can be used in LVM? 5. How will you remove a PV from lvm without any data loss? 6. What is the diff between ext3 and ext2 File system? 7. How we can use resize2fs, what is the purpose? 8. What is the purpose of LVM? Why it is used? 9. If the FS is in read-only mode, so we cannot create any file. How will you fix it? 10. How to create swap partition after OS installation? 11. What is the diff between ssh and telnet? 12. How to find out the dependency required for a package?
what are Softirq's and how many major numbers be allocated in the linux kernel(2.4) ?
How to give the root permision to users?
what is mean by raid and what are all raids available even in software and hardware?
what is bus trap.
how to create samba server in fedora linux 9 ?
if one of the critical section code (linked list) is under ISR & another one in kernel thread ? How you will synchronize for this critical section code ?
if root user forget the password how to change it?
Explain process management system calls in linux?
What will happen when we invoke a system call and say with an example of invoking a system call ?read? for a device?
what is stored at /lib/modules ?
what is cups and how to configure?