New Page 1
Welcome to basicsofcomputer.com
 

Share This Free Knowledge With Your Friends:

Home » Introduction to Process Management » Scheduling Queues in process management

Scheduling Queues in process management:

Below is a list of the most common types of queues and their purpose.

Job Queue: Each entering process goes into job queue. Processes in job queue reside on mass storage and awaits the allocation of main memory.

Ready Queue: The set of all processes that are in main memory and are waiting for CPU time, are kept in ready queue.

Waiting (Device) Queues: The set of processes waiting for allocation of certain I/O devices, are kept in waiting device queue.

Process Migration between Various Queues:

During its lifetime, a process begins in the job queue. It moves between the ready, waiting and possibly job queues and eventually finishes the task. This process of moving between various queues is known as process migration.

Scheduler:

When more than one processes can be executed, the operating system must decide which one to run first. The part of the operating system concerned with this decision is called the scheduler. The algorithm used by scheduler is called the scheduling algorithm.

The operating system must perform three different kinds of scheduling:

1. Long Term Scheduling:

It is also known as job scheduling. It selects a process when it should be brought from job queue into ready queue. Too many processes in memory slow down the machine. Too few means the machine is not being utilized efficiently.

The long-term scheduler is invoked fairly infrequently and can be fairly slow. Processes are added to the system much less frequently than processes are swapped between the ready queue and CPU. The long-term scheduler usually has to make a more difficult decision than the short-term scheduler.

The long-term scheduler controls the degree of multiprogramming i.e. the number of processes in memory. If there are too few .processes in memory, the system is under-utilized. If there are too many processes, the system may spend too much time swapping between process because of a lack of resources (memory,, disks, etc.).

2. Short Term Scheduling:

It is also known as CPU scheduling. It selects a process from ready queue and gives' control of CPU to the process.

The short-term, scheduler is invoked very frequently and must be very fast. Processes typically only hold the CPU for short periods of time. While the short-term scheduler is deciding which job to run next the system is not performing any useful work.

3. Medium Term Scheduling:

It is also possible for an operating system to perform medium term scheduling. The medium term scheduler can remove processes from memory. It swaps the processes between memory and secondary storage. It improves the performance of the system by reducing the degree of multiprogramming. A process can be swapped out of the memory to adjust another process in the memory.

Context Switch:

Whenever the CPU switches to another process, the system must save the state of the old process and load the saved state of the new process. If context switch does not occur, the new process may use the data from the old one. It is probably not the same data that was left behind when it was last on the CPU.

Whenever a context switch is performed, the CPU performs no useful work. This means that we would like the context switch to take as less as possible. The time that a context switch takes is dependent on whether there is some hardware available to support the switching (multiple sets of registers, etc.) As an operating system becomes more complex, the process needs to restore more information like memory management details etc.

Relevant Articles:

Process and Process Attributes in Operating System
Process States in Operating System
State Transition in Process
Process Control Block in Operating System
Process Scheduling in Operating System
Scheduling Queues in process management
Operations on Process in Process Scheduling
Cooperating Processes in Operating System
Inter-Process Communication (IPC) in Operating System
 
New Page 1

Basic Computer Science

   
» The Age of Information

» Types of Computer and Digital Age

» Input and Output Devices

» Storage Devices Of Computer

» Central Processing Unit

» Software: The Power Behind The Power

» Data Communication and Computer Networks

» The Nature Of Information

» The System Theory

» Transaction Processing System (TPS) and Management Information System (MIS)

» Decision Support System (DSS) and Executive Support System (ESS)

» Expert System (ES) and Office Information System (OIS)

 

Operating Systems

   
» Introduction to Operating System

» Introduction to Process Management

» Threads and CPU Scheduling

» Process Synchronization in Operating System

» Deadlocks

» Memory Management in Operating System

» Virtual Memory in Operating System

» File System Management in Operating System

» I/O and Device Management

» Security

» Linux Operating System

 

Database Management System

   
» Introduction to Database Systems

» Database System Architecture

» Database Administration and Database Development Process

» The Entity-Relationship Model

» Semantic Object Model

» Logical Database Design and Relational Data Model

» Normalization in Database

» Transformation of E-R Model into Relational Data Model

» Representing Semantic Object Model and Types of Semantic Object Model

» Physical Database Design

» Introduction to Structured Query Language (SQL)

» Implementation of Relational Database and Database Application Design

» Client Server Database Systems & Open Database Connectivity (ODBC)

 

Questions and Answers

   
» Basics of Information Technology

» Computer Architecture

» Data Communication

» Information Networks

» Fundamentals of the Internet

» Application and Uses of Computer

» Security, Copyright and The Law

» Windows Operating Systems

» Spreadsheet Software

» Process Management in CPU

» CPU Scheduling

» Process Synchronization

» Deadlocks

» Memory Management

» Database Systems

» Database System Architecture

» Database Administration and Database Development Process
 
 
New Page 1
 

Home                Dictionary                 Contact us                   About us                    Privacy policy                  Link to us                   Advertise

Copy right ©  2012