Process Definition, Process Scheduling, and Cooperating Processes in Operating System

Definition of Process in OS

The process is called that computer program which is being executed by the processor. Which can also be called an instance of a program in other words.

Many programs are sent to the processor for execution by the operating system, which processes them according to their priority and scheduled scheduling. 

Processing depends on which program the operating system wants the execution of first, it sets the priority for the process programs on the same basis.

We know that a set of instructions is called a computer program and with the help of these computer programs, all types of computer software are prepared. These software programs require a process to function.

Definition of Process in OS
Work of Process

It is a small background process that runs continuously with the operating system open in your system.

What is Process Scheduling?

It is part of a multiprogramming operating system. At present, the working capacity and speed of the processor has become very high and if we want to use its full capacity (power), then it will have to process many programs with a difference of nanosecond.

This work is done by the multiprogramming operating system, it currently assigns different programs required for the process to the processor by setting a schedule in nanoseconds. In this way, the idle process of the processor can be prevented by scheduling the processing.

Read Also - Process Model in Operating Systems

Define process scheduling in another way, it is necessary because the operating system prepares the schedule of tasks to be given to the devices of the computer system. The operating system decides which device to use. CPU scheduling cycle can be understood in the following diagram:

What is Process Scheduling?

The queue is shown in the circle in the above diagram. The resource providing that queue is shown by the square and the flow of the process is shown by the arrow.

What are Cooperating Processes?

Normally the process is independent, it does not depend on any other process, and these independent processes do not share any kind of data with any other independent process. But under certain circumstances, the processes cooperate with each other.

It is understood by the example of consumer and producer, such as the producer produces a product only when that product is consumed by the consumer. That's why it is necessary to have synchronization (coordination) between both types of processing. This type of processing has the following advantages:

Information Sharing:

Sometimes such a situation arises when many users want to share the same information with each other, in such a situation it is the responsibility of the operating system to make its processing available to more than one user among themselves.

User Requirement:

When a user wants to share multiple processing together to achieve a specific objective.

User convenience:

In Computing, a pipe structure is determined in which many elements are kept together, such as The statements 'stdin' and 'stdout' used in C programming are used together, then both types are used for the convenience of the user. Key processing is done simultaneously.

Computation Sharing:

Sometimes there are some big calculations that are done by dividing them into small pieces, due to which the calculation is done faster. Therefore it is necessary to share these types of calculations among themselves.

Post a Comment

0 Comments

Comments