their process IDs. | Output Process Tree Process ID is: Parent Process ID is PARENT Process ID is: Parent Process ID is CHILD 1 CHILD 2 Process ID is: Parent Process ID is CHILD 3 Process ID is: Parent Process ID is

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
1. Typing ps alone lists the current running processes. lab3.c can be compiled as, gcc -o
lab3 lab3.c. The output of the program can be obtained by typing:/lab3. Below are
the examples of the possible outputs that would be generated by the ps and ./lab3
commands:
./lab3
PID
TTY
TIME
CMD
Process ID is: 13126
pts/0
pts/0
13043
00:00:00
bash
Parent Process ID is 13125
13133
00:00:00
RE
Process ID is: 13125
Parent Process ID is 13124
Process ID is: 13127
Parent Process ID is 13124
Process ID is: 13124
Parent Process ID is 13043
Please remember that PID value of bash (Unix command shell) is 13043 for this example.
So the process tree can be drown by using the above information as:
13125
13126
PARENT
CHILD 1
CHILD 2
13043
13124
BASH
13127
Transcribed Image Text:1. Typing ps alone lists the current running processes. lab3.c can be compiled as, gcc -o lab3 lab3.c. The output of the program can be obtained by typing:/lab3. Below are the examples of the possible outputs that would be generated by the ps and ./lab3 commands: ./lab3 PID TTY TIME CMD Process ID is: 13126 pts/0 pts/0 13043 00:00:00 bash Parent Process ID is 13125 13133 00:00:00 RE Process ID is: 13125 Parent Process ID is 13124 Process ID is: 13127 Parent Process ID is 13124 Process ID is: 13124 Parent Process ID is 13043 Please remember that PID value of bash (Unix command shell) is 13043 for this example. So the process tree can be drown by using the above information as: 13125 13126 PARENT CHILD 1 CHILD 2 13043 13124 BASH 13127
Write the output of your program and draw a process three and label the processes with
their process IDs.
Output
| Process Tree
Process ID is:
Parent Process ID is
PARENT
Process ID is:
Parent Process ID is
CHILD 1
CHILD 2
Process ID is:
Parent Process ID is
CHILD 3
Process ID is:
Parent Process ID is
Transcribed Image Text:Write the output of your program and draw a process three and label the processes with their process IDs. Output | Process Tree Process ID is: Parent Process ID is PARENT Process ID is: Parent Process ID is CHILD 1 CHILD 2 Process ID is: Parent Process ID is CHILD 3 Process ID is: Parent Process ID is
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY