The linux kernel has a policy that a process cannot hold a spinlock while attempting to acquire a semaphore. Explain why this policy is in place.
Answers
Answered by
11
This policy is in place because a spin lock cannot be hold while a semaphore is acquired. If this happens, it would take more than six to seven hours before semaphore is acquired and with spin lock in hold, one cannot do so.
Linux is an operating system kernel, and it is like Unix; while semaphore is a variable.
Answered by
2
Answer:
Linux piece has an approach that a procedure can't hold a spinlock while endeavoring to gain a semaphore.
Clarify why this arrangement is set up. You can't hold a turn lock while you procure a semaphore, since you may need to rest while hanging tight for the semaphore, and you can't rest while holding a turn lock. It will make a powerful effect.
Explanation:
Similar questions
Physics,
6 months ago
Accountancy,
6 months ago
Political Science,
1 year ago
Social Sciences,
1 year ago