Operating SystemComputer Science & Information Technology

What is System Call?

System call provides the services of operating system to the user programs via Application Program Interface (API). It provides an interface between a process and operating system to allow user level processes to request services of operating system.

WHAT IS PROCESS?

A process is an activity of executing a program. It is a program under execution. Every process needs certain resources to complete its task.

Abstraction view of a process

Process Control Block (PCB)

A process control block is a data structure maintained by the operating system for every process. The PCB is identified by an integer process ID (PID). A PCB keeps all the information needed to keep track of a process as listed below:

Process control block

PROCESS STATE MODELS

Process state defines the current activity of the process. Process states are: new, running, ready, blocked, suspended (suspended ready, suspended blocked), etc.

Process state models

SCHEDULING

Scheduling depends on three scheduler in the system

  1. Long-term scheduler
  2. Medium-term scheduler
  3. Short-term scheduler

Long-term Scheduler

  • It determines which process are to be admitted to the system for processing. It selects processes from the queue (from disk) and leads them into memory for execution.

Medium-term Scheduler

  • The mid term scheduler involves in the decision to swap processes from main memory to secondary memory and vice-versa.

Short-term Scheduler

  • It selects a process from the ready queue and allocates CPU to one of then, i.e., process state changes from ready to run.

Dispatcher

The dispatcher is the module that gives a process control over the CPU after it has been selected by the short term scheduler.

<< Previous | Next >>
Must Read: What is an operating system and its types?

 

Dear Aspirants,
Your preparation for GATE, ESE, PSUs, and AE/JE is now smarter than ever — thanks to the MADE EASY YouTube channel.
This is not just a channel, but a complete strategy for success, where you get toppers strategies, PYQ–GTQ discussions, current affairs updates, and important job-related information, all delivered by the country’s best teachers and industry experts.
If you also want to stay one step ahead in the race to success, subscribe to MADE EASY on YouTube and stay connected with us on social media.
MADE EASY — where preparation happens with confidence.

MADE EASY

MADE EASY is a well-organized institute, complete in all aspects, and provides quality guidance for both written and personality tests. MADE EASY has produced top-ranked students in ESE, GATE, and various public sector exams. The publishing team regularly writes exam-related blogs based on conversations with the faculty, helping students prepare effectively for their exams.

Leave a Reply

Your email address will not be published. Required fields are marked *