holdandwait
Hold-and-wait is a deadlock condition in concurrent systems in which a process that holds at least one resource is waiting to acquire additional resources that are currently held by other processes. This situation can prevent progress when multiple resources are involved and processes hold some while waiting for others.
In resource-sharing environments, a process may hold a mutex, file handle, or memory block while it waits
Prevention and handling strategies include requiring a process to request all needed resources at once (all-or-nothing
Example: Two processes, P1 holds resource A and waits for B, while P2 holds B and waits