Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Other

Operations on Processes - Process Creation

Rating
-
Sold
-
Pages
5
Uploaded on
13-04-2023
Written in
2022/2023

Operations on Processes - Process Creation

Institution
Course

Content preview

Operations on Processes

Most systems allow for concurrent process execution and allow for
dynamic process creation and deletion. Therefore, a means for starting
and stopping processes must be provided by these systems. This
section examines the mechanics involved in process generation and
provides examples on UNIX and Windows platforms.


Process Creation
A process may generate numerous additional processes while it is being
executed. As was already indicated, the newly created processes are
referred to as the children of the parent process. Each of these new
processes has the potential to produce further processes, building a
process tree.


The majority of operating systems, including UNIX, Linux, and Windows,
use a unique process identifier (or pid), which is often an integer
number, to identify processes. The pid gives each process in the system
a distinct value, and it can be used as an index to access different
kernel-level properties of a process.
A typical Linux operating system process tree is shown in Figure 3.8,
along with each process' name and pid. (We loosely use the term
"process"; Linux uses the term "task" instead.) All user processes have
the init process as their root parent, which has a pid of 1. The init
process can also create a variety of user processes once the system has
booted, such a web or print server, an ssh server, and others. Kthreadd
and SSH are two of init's offspring that we can see in Figure 3.8.
Additional processes that work on behalf of the kernel are created by

, the kthreadd process (in this situation, khelper and pdflush). Clients
that connect to the system using ssh (short for secure shell) must be
managed by the sshd process. Clients who log in directly to the system
are managed by the login procedure. The bash shell, which has been
given the pid 8416, is being used by a client who has logged in in this
example. This user has written the emacs editor and the process ps
using the bash command-line interface.
We can use the ps command on UNIX and Linux systems to get a list of
processes. For instance, the instruction: ps -el
will provide detailed information for each process that is running at the
moment.
By recursively tracing parent processes all the way to the init process, it
is simple to build a process tree resembling the one in Figure 3.8.

Written for

Institution
Course

Document information

Uploaded on
April 13, 2023
Number of pages
5
Written in
2022/2023
Type
OTHER
Person
Unknown

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
abdelhalimmansour

Get to know the seller

Seller avatar
abdelhalimmansour Alexandria university
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
4
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions