Explain process scheduling, Operating System

Assignment Help:

Explain Process scheduling

Process scheduling consists of the subsequent sub-functions:

1.      Scheduling : Selects the process to be implement next on the CPU

2.      Dispatching: Sets up implementation of the selected process on the CPU

3.      Context save: Saves the status of the running process when its implementation is to be suspended

The scheduling function utilizes information from the PCB's and selects a process based on the scheduling policy in force. Dispatching engrosses the setting up of the execution environment of the selected process and loading information from the PSR and register fields of the PSB into the CPU. The context save function carries out housekeeping when a process releases the CPU or is pre-empted. It engrosses saving the PSR and registers in the appropriate fields of the PCB and changing the process state. In practice this function is performed through the interrupt processing module

The same as shown in the following fig, appearance of an event invokes the context save function. The kernel at this instant processes the event which has occurred. This processing may escort to a change of state for some process. The scheduling function is now appeal to select a process for execution on the CPU. The dispatching function arranges the implementation of the selected function on the CPU.

1546_Process scheduling.png


Related Discussions:- Explain process scheduling

Producer - consumer synchronization, This assignment is based on Programmin...

This assignment is based on Programming Project 6.40 in Silbershatz. Implement the ProducerXConsumer program according to the instructions for Project 6.40 for both Linux and Win32

List antivirus techniques used for protection purposes, Question: a) Th...

Question: a) There are main goals of data security. List them and elaborate on how they provide protection. b) Describe threats associated with data security. c) Describe

Deadlock, what are the overall concepts of deadlock

what are the overall concepts of deadlock

System bus and device speeds as the cpu speed increases, Q. Why is it impor...

Q. Why is it important to scale up system bus and device speeds as the CPU speed increases? Answer: Consider a system which carries out 50% I/O and 50% computes. Doubling-up

Explain secondary-storage management, What are the three main activities of...

What are the three main activities of an operating system in regard to secondary-storage management? a) Free-space management. b) Storage allocation. c) Disk scheduling.

Gang scheduling , Gang Scheduling : A set of related process is scheduled ...

Gang Scheduling : A set of related process is scheduled to execute on a set of processors at the similar time, on a 1-to-1 basis. Closely related processes or threads may be sched

Paging, what is the use of valid invalid bits in paging

what is the use of valid invalid bits in paging

Define analysis for syntactic structure of source statement, An analysis, w...

An analysis, which defines the syntactic structure of the source statement, is known as Syntax analysis defines the syntactic structure of the source statement

Processes, draw a state diagram showing the transissions of a process from ...

draw a state diagram showing the transissions of a process from creation to termination

Define the main reason to encrypt a file, Define the Main reason to encrypt...

Define the Main reason to encrypt a file Major reason to encrypt a file is secure it for transmission.

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd