Found 2003 Articles for Operating System

Different Models of Interprocess Communication

Alex Onsman
Updated on 24-Jun-2020 08:39:53

15K+ Views

Interprocess communication is the mechanism provided by the operating system that allows processes to communicate with each other. This communication could involve a process letting another process know that some event has occurred or transferring of data from one process to another.A diagram that illustrates interprocess communication is as follows −The models of interprocess communication are as follows −Shared Memory ModelShared memory is the memory that can be simultaneously accessed by multiple processes. This is done so that the processes can communicate with each other. All POSIX systems, as well as Windows operating systems use shared memory.Advantage of Shared Memory ... Read More

Interprocess Communication with Sockets

David Meador
Updated on 24-Jun-2020 08:28:42

6K+ Views

Interprocess communication is the mechanism provided by the operating system that allows processes to communicate with each other. This communication could involve a process letting another process know that some event has occurred or transferring of data from one process to another.One of the ways to manage interprocess communication is by using sockets. They provide point-to-point, two-way communication between two processes. Sockets are an endpoint of communication and a name can be bound to them. A socket can be associated with one or more processes.Types of SocketsThe different types of sockets are given as follows −Sequential Packet Socket: This type ... Read More

Different Operations on Processes

Kristi Castro
Updated on 24-Jun-2020 08:30:14

24K+ Views

There are many operations that can be performed on processes. Some of these are process creation, process preemption, process blocking, and process termination. These are given in detail as follows −Process CreationProcesses need to be created in the system for different operations. This can be done by the following events −User request for process creationSystem initializationExecution of a process creation system call by a running processBatch job initializationA process may be created by another process using fork(). The creating process is called the parent process and the created process is the child process. A child process can have only one ... Read More

What is Context Switching in Operating System?

Alex Onsman
Updated on 06-Sep-2023 10:36:19

42K+ Views

Context Switching involves storing the context or state of a process so that it can be reloaded when required and execution can be resumed from the same point as earlier. This is a feature of a multitasking operating system and allows a single CPU to be shared by multiple processes.A diagram that demonstrates context switching is as follows −In the above diagram, initially Process 1 is running. Process 1 is switched out and Process 2 is switched in because of an interrupt or a system call. Context switching involves saving the state of Process 1 into PCB1 and loading the ... Read More

Different Types of Process Schedulers

Ricky Barnes
Updated on 24-Jun-2020 08:33:06

17K+ Views

Process Scheduling handles the selection of a process for the processor on the basis of a scheduling algorithm and also the removal of a process from the processor. It is an important part of multiprogramming operating system.There are many scheduling queues that are used in process scheduling. When the processes enter the system, they are put into the job queue. The processes that are ready to execute in the main memory are kept in the ready queue. The processes that are waiting for the I/O device are kept in the I/O device queue.The different schedulers that are used for process ... Read More

What are the different states of a Process?

Ricky Barnes
Updated on 24-Jun-2020 08:22:59

15K+ Views

A process is an active program. It can also be said as a program that is under execution. It is more than the program code as it includes the program counter, process stack, registers, program code etc. Compared to this, the program code is only the text section.A process passes through different states as it executes. These states may be different in different operating systems. However, the common process states are explained below with the help of a diagram −NewThis is the state when the process has just been created. It is the initial state in the process life cycle.ReadyIn ... Read More

What is Interprocess Communication?

Alex Onsman
Updated on 02-Sep-2023 10:23:25

98K+ Views

Interprocess communication is the mechanism provided by the operating system that allows processes to communicate with each other. This communication could involve a process letting another process know that some event has occurred or the transferring of data from one process to another.A diagram that illustrates interprocess communication is as follows −Synchronization in Interprocess CommunicationSynchronization is a necessary part of interprocess communication. It is either provided by the interprocess control mechanism or handled by the communicating processes. Some of the methods to provide synchronization are as follows −SemaphoreA semaphore is a variable that controls the access to a common resource ... Read More

What is Zombie Process in Linux?

Ricky Barnes
Updated on 23-Jun-2020 15:38:03

20K+ Views

A zombie process is a process whose execution is completed but it still has an entry in the process table. Zombie processes usually occur for child processes, as the parent process still needs to read its child’s exit status. Once this is done using the wait system call, the zombie process is eliminated from the process table. This is known as reaping the zombie process.A diagram that demonstrates the creation and termination of a zombie process is given as follows −Salient points of Zombie ProcessesSome of the salient points related to zombie processes are as follows −All the memory and ... Read More

What is Process Control Block (PCB)?

Alex Onsman
Updated on 07-Nov-2023 02:51:44

202K+ Views

Process Control Block is a data structure that contains information of the process related to it. The process control block is also known as a task control block, entry of the process table, etc.It is very important for process management as the data structuring for processes is done in terms of the PCB. It also defines the current state of the operating system.Structure of the Process Control BlockThe process control stores many data items that are needed for efficient process management. Some of these data items are explained with the help of the given diagram −The following are the data ... Read More

Different types of system calls

David Meador
Updated on 02-Sep-2023 11:38:28

79K+ Views

The interface between a process and an operating system is provided by system calls. In general, system calls are available as assembly language instructions. They are also included in the manuals used by the assembly level programmers.System calls are usually made when a process in user mode requires access to a resource. Then it requests the kernel to provide the resource via a system call.Types of System CallsThere are mainly five types of system calls. These are explained in detail as follows −Here are the types of system calls −Process ControlThese system calls deal with processes such as process creation, ... Read More

Advertisements