Critical Section Problem in Operating System

A contention situation arises if two independent programs or processes want to access common data, and this can lead to a collision. Code segments that access common data areas, are prone to collisions known as critical sections. A critical section is understood as program parts that must not be interrupted by other processes or threads … Read more

Concurrency in Operating System and Principle of Concurrency

Concurrency in Operating System refers to the execution of several programs at the same time. It takes place in OS when multiple processes are executing in parallel. It is the execution of processes to provide an impression of a synchronous computation. In Concurrency, resources are shared among the processes that result in troubles such as … Read more

Dispatcher in Operating System. Write Functions of Dispatcher

Dispatcher provides control of the CPU to the process picked by the short-term scheduler. When the scheduler finishes its task of selecting a process, then the dispatcher takes that process to the destination state.  For example, Suppose there are 5 processes P1, P2, P3, P4, and P5.  The arrival times of these processes are T1, … Read more

What is Thread in OS? User and Kernel level thread

A thread is a part of a process. A process is classified into a number of light-weighted processes, each light weighted process is known as a thread. It is a track of execution in process. The thread has a program counter that holds the path of which instruction to execute next. It has a register … Read more

Inter-process Communication in OS. Explain its two models

Inter-process communication is a mechanism that allows processes to communicate with each other. The processes of two different computers that connect with the same network can also communicate via Inter-process communication. Communication between the processes should take place in a well-structured manner. It is used to exchange essential information between threads in single or multiple … Read more

Difference between long term, middle term, and short-term schedulers

There are many differences between long-term, middle-term, and short-term schedulers. Some of our Long term schedulers manage the degree of multiprogramming. The middle-term scheduler diminishes the degree of multiprogramming. And short-term scheduler facilitates lesser control over the degree of multiprogramming. Difference between long term, middle term, and short-term schedulers are Long term scheduler Middle term … Read more

Process Control Block (PCB) and List of Informations contains in PCB OS

The process control block is the data structure that contains information about the state of the process, its instruction counter, CPU register, Stack pointer, memory usage, and the state of its open files. The PCB includes a lot of information linked with a particular process. It is also known as a task control block. Every … Read more

Context Switching in Operating System with the help of Diagram

In context switching, generally, “context” means situation and “switching” means jumping from one option to another option. Hence, when the process keeps jumping or switching between the processor is referred to as context switching. Context switching is the changing in the state of processes so that a single CPU can be used by multiple processes. … Read more