Category Archives: Operating Systems

Deadlock in Operating System

In an operating system, deadlock is a situation where a set of processes are blocked because each process is holding a resource and waiting for another resource acquired by some other process. For example, in the below diagram, Process 1 is holding Resource 1 and waiting for resource 2 which is acquired by process 2, and process 2… Read More »

Dual Mode of Operating Systems

Dual-mode operation forms the basis for I/O protection, memory protection and CPU protection. Two modes are provided by the hardware – user and kernel mode. Mode bit is added to computer hardware to indicate the current mode. When system boots, hardware starts in kernel mode. The OS is loaded and then user process is started in user mode.… Read More »