New Page 1
Welcome to basicsofcomputer.com
 

Share This Free Knowledge With Your Friends:

Home » Introduction to Process Management » Operations on Process in Process Scheduling

Operations on Process in Process Scheduling:

The operating system is responsible for providing a mechanism to create and destroy processes dynamically.

Process Creation:

Parent process creates children processes. The children processes can also create other processes forming a tree of processes.

A process may create zero or more new child processes. Process creation may be limited by the amount of resources that a parent process has. If a parent process creates a child process, child process may create child processes of its own, creating a tree of processes.

When a child process is created, it may be able to obtain resources directly from the parent. It may only be able to obtain a subset of the parent's resources or it must acquire its own resources. It is usually a good idea to limit the resources of child process as a single user process could create hundreds of child processes. Each might be able to acquire resources of their own, leaving no resources for other processes and effectively giving control of the machine to a single user process.

When a process creates a new process, the parent may continue to execute concurrently with its children or it must wait until some or all its children have terminated execution.

In terms of address space, the child may be an exact duplicate of the parent. This would allow the child and parent to communicate very easily as they share the same address space. It should be possible to load a new program into the address space of the child (typically we want the child to do something different to its parent).
It is also possible to create an entirely new process and place a new program into it. This makes it more difficult for the child and parent to communicate since they have nothing in common.

Process Termination:

A process normally terminates when it has finished executing its last statement. It typically tells the operating system by issuing some form of the exit() system call. At this point, if the process is a child it may output some data to its parent. Eventually the process has all its resources removed from it and is no longer part of the job pool.

A child process may be terminated by its parent using the abort () system call. This may occur because the child has asked for too many resources, the child is no longer wanted, or possibly if the parent is terminating. The operating system may or may not allow a child process to continue executing after its parent terminates.

In some instances it does not make sense for the child to keep going, especially if its job was to compute something and to return a result. In other instance, a child process may continue after the parent has finished e.g. a web browser may allow you to download files in the background after the web browser has been closed.

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