OS stands for Operating System and in simple terms it acts as interface between hardware and users. In this article the focus is not to describe and talk about operating system but about deadlock, and we will see what is deadlock, how it occurs, how it is represented and how…