what is the diff b/w MUTEX and semaphore?
Answers were Sorted based on User's Feedback
Answer / chandra
Hi,
I THINK mute x one problem are there its buy waiting or
spin lock semaphore are avoid this problem
| Is This Answer Correct ? | 1 Yes | 9 No |
Answer / alka
mutex only ranges from 0 to 1.it is binary
semaphore is 2 types
binary
counnting
binary is like utex
counting can handle multiple threads at a time, no range
limit
so meanwhile it is not recommended
| Is This Answer Correct ? | 2 Yes | 13 No |
what happens when we do insmod & rmmod in Linux Device Drivers ?
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?
how to configure ftp server on redhat linux?
what are the backup utilites on red hat linux 4.0?
What are system calls used for process management in linux?
How to give the root permision to users?
diff b/w spinlock, seamaphores and mutex and where to use it.
what are the different ways the Linux can swich from User Space to Kernel Space & vice-versa ?
What does exec family return?
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 ?
what are different ways the context switch happens from user to kernel space or vice-versa ?
Port number is already in use .. how to fix for apache..?