Static Deadlock Prevention

Similar Posts

  • Processes

    A process is an instance of a program being executed by an OS. The OS manages the processes in something called a Process Control Block (PCB). This helps it keep track of what is running, how much memory is being used and where, the program being run, the current instruction address, etc. Your operating system as a…

  • Semaphores

    The software solution presented before only works if there is two processes competing for the same code block. Likewise, it is not real efficient if it needs to be used a lot. Semaphores are general-purpose primitives that allow solving a variety of synchronization problems in a systematic manner. A semaphore is a non-negative integer variable that…

  • The Hardware-Software Interface

    General purpose computers need to be able to access a variety of IO devices, from long term storage, mouse, keyboard, networking, and more. A device controller/adapter is an electronic circuit capable of operating a specific I/O device. The interface may be set by and/or examined by device drivers. A device driver is a device-specific program that implements I/O…

  • Deadlock Detection

    A deadlock in a resource allocation graph can be detected by executing a graph reduction algorithm by repeating this process: Select an unblocked process p. Remove p, including all request and allocation edges connected to p. Anything left is blocked, and risks deadlock. However, it is considered completely reducible if there are no processes left…