How can a process in deadlock with another (each has what the other needs) resolve the deadlock to continue operation.
Sigiloso
Introduce mutex/semaphores around the variables which are shared by the resources or simply introduces synchronized blocks where the producer interacts with the consumer.