Readers Writers Problem – Critical Section Problem

The readers-writers problem is a classical problem of process synchronization, it relates to a data set such as a file that is shared between more than one process at a time. Among these various processes, some are Readers – which can only read the data set; they do not perform any updates, some are Writers […]

Read more

Producer Consumer Problem

The producer consumer problem is a synchronization problem. There is one Producer in the producer-consumer problem, Producer is producing some items, whereas there is one Consumer that is consuming the items produced by the Producer. The same memory buffer is shared by both producers and consumers which is of fixed-size. The task of the Producer […]

Read more

Peterson’s Solution – Solutions for Critical Section Problem

Case 1: turn = 0 or 1 This solution allows Mutual Exclusion for 2 process. But there is strict alteration, P1 then P2 and so on… Means No progress. Therefore, It is not a correct solution. Here, processes are never asked whether it want to enter the c.s. or not.   Case 2: Lets say, […]

Read more

Process Synchronization – Operating System

On the basis of synchronization, processes are categorized as one of the following two types: Independent Process : Execution of one process does not affects the execution of other processes. Cooperative Process : Execution of one process affects the execution of other processes. Process synchronization problem arises in the case of Cooperative process also because […]

Read more

Threads – Operating System

Thread is a single sequence stream within a process (light weight process). A thread is a flow of execution through the process code, with its own program counter that keeps track of which instruction to execute next, system registers which hold its current working variables, and a stack which contains the execution history. Thread are […]

Read more

Cpu Scheduling Algorithms – Operating System

Basic Terminologies Burst Time / Execution Time. Waiting Time Arrival Time Exit Time Turnaround Time Turnaround Time = Exit Time – Arrival Time = Burst Time + Waiting Time Waiting Time = Turnaround Time – Burst Time Response Time : Time between a process enters ready queue and get scheduled on the CPU for the […]

Read more

Process Scheduling – Operating System

Process Scheduling The process scheduling is the activity of the process manager that handles the removal of the running process from the CPU and the selection of another process on the basis of a particular strategy. Process scheduling is an essential part of a Multi-programming operating systems. Such operating systems allow more than one process […]

Read more

Processes – Operating System

a program in execution. When a program is loaded into memory, it becomes a process. an entity which represents the basic unit of work to be implemented in the system. Program vs Process A process is a program in execution. For example, when we write a program in C or C++ and compile it, the […]

Read more

Types of Operating System

Evolution >> Main Frame Computers common input and output were card readers and tape drives. user prepare a job which consisted of the program, input data and control instructions. Input job is in the form of punch cards and result is also will be in the form of punch cards after the complete processing. Basically […]

Read more

Introduction of Operating System

A System that operate something. A program that acts as intermediary between a user of a computer and the computer hardware to manage resources and provide common services for Application Software. Hardware ->  A Device that is physically connected to computer or something that can be physically touched. Software -> A collection of set of programs, […]

Read more