There is no general solution to avoid soft deadlock.A deadlock occurs when the waiting process is still holding on to another resource that the first needs before it can finish. One process loses out and must wait for the other to finish. Time Sharing computers are equipped with a hardwired lock which gaurantees exclusive access to processes, thus preventing deadlock. 18 Answers Sorted by: 253 A lock occurs when multiple processes try to access the same resource at the same time.In Multiprocessing, many processes share a specific type of mutually exclusion resource known as soft lock. The execution of two or more processes is blocked because each process holds some resource and waits for another resource held by some other process.Deadlock usually occurs in multiprocessing, time- sharing etc Deadlock is avoided by always keeping the system in a safe state this may reduce resource utilization 14 Deadlock Unsafe Safe 142-15-3559 15.In deadlock, processes get blocked because each process is holding some resource and they are waiting for other resource, which is held by another process.If Process A request resource R2 and Process B requests resource R1, at the same time, then deadlock occurs. In the above diagram, the process 1 has resource 1 and needs to acquire resource 2. Let’s look at one example to understand it – Say, Process A has resource R1, Process B has resource R2. A deadlock happens in operating system when two or more processes need some resource to complete their execution that is held by the other process. Similarly, Process 2 is allocated Resource 1 and it. Which of the following condition is required for a deadlock to be. For example: Process 1 is allocated Resource2 and it is requesting Resource 1. P1 and P2 each hold one tape drive and each needs another one. Deadlock refers to the condition when 2 or more processes are waiting for each other to release a resource indefinitely. A process in nature requests a resource first and uses it and finally releases it.īut in deadlock situation, both the processes wait for the other process. Operating System Multiple Choice Questions Deadlock 1.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |