A deadlock is a situation whereÊtwo or more competing actions or processes run at the same time while they shouldn't hence no task is either completed, while process synchronization is where two or more process work together concurrently with each other to complete a task.
The difference is exactly what you have just stated: deadlock prevention is used to stop deadlocks before they happen (to prevent them), while deadlock detection is used to figure out when a process has deadlocked (to detect it).
DEADLOCK:1) Deadlock process is permanently blocked because the required resource never becomes available.2) The resource under contention is not in continuous use.STARVATION:1) In starvation, it is not certain that a process will ever get the requested resources.2) the resource under contention is in continuous use.
a. The creation and deletion of both user and system processes b. The suspension and resumption of processes c. The provision of mechanisms for process synchronization d. The provision of mechanisms for process communication e. The provision of mechanisms for deadlock handling
It is a process... when a cant be processed
a. The creation and deletion of both user and system processes b. The suspension and resumption of processes c. The provision of mechanisms for process synchronization d. The provision of mechanisms for process communication e. The provision of mechanisms for deadlock handling
A set of processes is deadlock if each process in the set is waiting for an event that only another process in the set can cause.
a. The creation and deletion of both user and system processes b. The suspension and resumption of processes c. The provision of mechanisms for process synchronization d. The provision of mechanisms for process communication e. The provision of mechanisms for deadlock handling
no deadlock can only occur when processes access shared memory and the following conditions must be met: -mutual exclusion -hold and wait -no preemption -circular wait. As soon as any of the 4 conditions fail,no deadlock. For example there cannot be circular wait for the case of one process.Who is waiting for who?The single process have access to all the available ressources.
Deadlock prevention is the name of the technique that is designed to get rid of deadlocks by changing the specifications of the system , that is the system design change. This is , basically , about how requests about resources are made and how they are permitted. However , deadlock avoidance is a technique that aims to check deadlock possibility dynamically and decides whether it is safe to grant a resource or not. It ,definitely , needs extra information about potential use of resources for each process. Deadlock Prevention: Preventing deadlocks by constraining how requests for resources can be made in the system and how they are handled (system design). The goal is to ensure that at least one of the necessary conditions for deadlock can never hold. Deadlock Avoidance: The system dynamically considers every request and decides whether it is safe to grant it at this point, The system requires additional apriori information regarding the overall potential use of each resource for each process. Allows more concurrency. Similar to the difference between a traffic light and a police officer directing traffic.
lklk
the coordinator conculde incorrectly that a deadlock exist and kills some process --------------------------- Detecting a non existent deadlock in distributed system has been referred as false deadlock and it may occur due to communication delay.. ---->Ashok Paranjothi
synchronization mean arrange all process in sequence for that not occured no colusion in the system.