Operating system
Why we need mutual exclusion, and how it is implemented?
Mutual exclusion is a property of concurrency control that prevent simultaneous access to the shared resources.it is required to prevent the execution of one thread from entering its critical section while another concurrent thread of execution enter its own critical section. Mutual exclusion can be implemented by using peterson algorithm. Two ideas of algorithm are
In this the first thread acquire a lock and set flag =1 by self then give other thread a chance to aquire lock. Uf the thread desire to aquire lock then it get lock and pass it to the chance to the next.
Operating system Why we need mutual exclusion, and how it is implemented?
Operating Systems how do semaphores support mutual exclusion ?
Why is it that using a mutual exclusion does NOT ensure that a system avoids deadlock?
In all computer system, there is a component of the system which provides fundamental mutual exclusion protection. what is this component, why does it provide mutual exclusion and why is it insufficient to protect against asynchrony?
Define syncronization delay in distributed mutual exclusion and explain why it is a relevant element in the performance evaluation of distributed mutual exclusion algorithms.
Why might it be considered bad practice to use a spinlock to enforce mutual exclusion on a computer with one core, but be acceptable to do so on a computer with multiple cores?
Assume that we desire to have deadlock-free mutual exclusion using locks on a shared object implemented via a set of shared registers. Suppose we allow threads to go through the lock method without writing to any of the shared registers? In general, it will be impossible to tell if a thread is in the critical section by examining the shared object. It will result in deadlocks. Both (a) and (b) Neither (a) nor (b) Suppose a thread attempts to lock...
We discussed the use of spin-locks and semaphores for achieving mutual exclusion. Semaphores are designed to avoid busy waiting and provide fairness. (a) Is it always desirable to use semaphores rather than spin-locks? To answer, address the overhead incurred in each approach. (b) Discuss the situations in which each one is preferred.
Many mutual exclusion algorithms are verified using computer programs. Briefly outline how these programs manage to verify that a certain algorithm is correct.
Why do we need Subcontractor in Software and System Integration process? How does it help to ensure quality of integrated system? How do we Improve the quality and productivity during the software and system integration process?
why do we have to understand the full disclosure principles and describe how it is implemented? explain in detail