Concurrency : Deadlock and Starvation Principles of deadlock Deadlock is the permanent blocking of a set of processes that either compete for system resources or communicate…