SlideShare a Scribd company logo
1 of 33
Download to read offline
https://github.com/syaifulahdan/os­practice|Operating System Practice |1 to 45 
OPERATING SYSTEMS PRACTICE
Process and Management Process
Practice : 4B

Process on Linux Operating System

Process Management on Linux Operating Systems
https://github.com/syaifulahdan/os­practice|
https://github.com/syaifulahdan/os­practice|Operating System Practice |2 to 45 
A. Objectives
1. Understand the process concepts in Linux operating system.
2. Shows some ways of showing parent and child process
relationships.
3. Displays the status of a process with several different formats.
4. Controlling the process on the shell.
5. Understanding priority scheduling.
https://github.com/syaifulahdan/os­practice|Operating System Practice |3 to 45 
B. Basic Theory
https://github.com/syaifulahdan/os­practice|Operating System Practice |4 to 45 
1. Concept Proces on linux OS

Process is the program being executed.

Whenever using the system utility or application
program from the shell, one or more "child" processes
will be created by the shell according to the given
command.

Each time the instruction is given in the Linux shell, the
kernel creates an id-process.

This process is also called the Unix terminology as a
Job.

The process Id (PID) starts from 0, the INIT process,
followed by the next process (listed in /etc 
/inittab).
https://github.com/syaifulahdan/os­practice|Operating System Practice |5 to 45 

Several types of processes:

Foreground
Processes created by the user directly at the terminal
(interactive, dialog)

Batch
Processes are collected and executed sequentially (one by
one). Batch Prose is not associated (interacting) with terminal.

Daemon
Processes that wait for requests from other processes and
perform tasks according to the request.
If there is no request, then this program will be in "idle" and do
not use CPU count time. Generally the name of the daemon
process in UNIX ends in d, for example inetd,  named, 
popd etc.
https://github.com/syaifulahdan/os­practice|Operating System Practice |6 to 45 
2. Signal
The process can send and receive signals from and to
other processes. The process of sending a signal
through the instruction "kill" with the format.
kill [­nomor sinyal] PID
Signal number: 1 to maximum signal number defined by
system The most important signal number standard is:
https://github.com/syaifulahdan/os­practice|Operating System Practice |7 to 45 
No Signal Name Description
1 SIGHUP Hangup, signals are sent when the process
is disconnected, for example through the
breaking of the modem connection
2 SIGINT Interrupt signal, through ^ C
3 SIGQUIT Quit signal, via ^ 
9 SIGKILL Signal Kill, stop the process
15 SIGTERM Software termination signals
https://github.com/syaifulahdan/os­practice|Operating System Practice |8 to 45 
3. Sending Signal
Sending a signal is a communication tool between processes,
which tells the ongoing process that something must be
controlled. Based on the signal sent this process can react and
the administrator / programmer can determine the reaction.
Sending signals using instructions
kill [­nomor sinyal] PID
Before sending the PID signal the process to be sent must be
known first.
https://github.com/syaifulahdan/os­practice|Operating System Practice |9 to 45 
4. Control Process on Shell

Shell provides a job control facility that allows control of
multiple jobs or processes that are running at the same
time.

For example when doing text file editing and want to do
interrupt editing to do other things.

When done, can return (switch) to the editor and do the text
file editing again.

Job works on foreground or background.

In foreground only for one job at a time.

Job on the foreground will control the shell - receive input
from the keyboard and send output to the screen.

The job in the background does not accept input from the
terminal, usually running without requiring interaction.
https://github.com/syaifulahdan/os­practice|Operating System Practice |10 to 45 

Job on the foreground may be suspended, with press [Ctrl-
Z].

A paused job can be re-run in the foreground or background
as needed by pressing "fg" or "bg".

For the record, stopping a temporary job is very different
from doing an interrupt job (usually using [Ctrl-C]), where
the interrupted job will be permanently disabled and can not
be executed again.
https://github.com/syaifulahdan/os­practice|Operating System Practice |11 to 45 
5. Control Other Process

The ps command can be used to indicate all running
processes on the machine (not just processes in the current
shell) with the format :
ps –fae or
ps ­aux

Some versions of UNIX have a so-called top system utility
that provides an interactive way to monitor system activity.

Statistics in detail with running processes are displayed and
continually refreshed. The process is displayed in sequence
from the CPU utility. A useful key on the top is
https://github.com/syaifulahdan/os­practice|Operating System Practice |12 to 45 
s – set update frequency
u – display proses dari satu user
k – kill proses (dengan PID)
q – quit
The utility for performing process controls can be found on
UNIX systems is the killall command. This command will
stop the process according to PID or job number process.
https://github.com/syaifulahdan/os­practice|Operating System Practice |13 to 45 
C. Step by Step
https://github.com/syaifulahdan/os­practice|Operating System Practice |14 to 45 
1 Login as user.
2 Download the C ++ program to display primes
named primes.
3 Conduct the experiments below and then analyze
the experimental results.
4 Complete the practice questions.
https://github.com/syaifulahdan/os­practice|Operating System Practice |15 to 45 
D. Experiment
https://github.com/syaifulahdan/os­practice|Operating System Practice |16 to 45 
$ yes > /dev/null
Experiment 5 : Stop and resume jobs
1. Another way to put a job in the background is to
start the job normally (in the foreground), stop job
and start again in the background.
Pause the job (suspend), not stop it (terminate), but
pause the job until the restart. To pause the job use
Ctrl-Z.
2. To restart a job in foreground, use the fg command.
$ fg
https://github.com/syaifulahdan/os­practice|Operating System Practice |17 to 45 
3. Shell will display the name of the command placed
in the foreground. Stop job again with Ctrl-Z. Then
use the bg command to put the job in the background.
Job can not be stopped with Ctrl-Z because job is in
background. To stop it, put the job on foreground
with fg and then pause with Ctrl-Z.
$ bg
$ fg
4. Job in the background can be used to display text
on the terminal, which can be ignored if trying to do
other jobs.
$ yes &
https://github.com/syaifulahdan/os­practice|Operating System Practice |18 to 45 
To stop it can not use Ctrl-C. Job should be moved to
foreground, just stopped by pressing fg and press Enter, then
proceed with Ctrl-Z to pause.
5. If you want to run multiple jobs at one time, put a
job in the foreground or background by assigning a job
ID
$ fg %2 or $ %2
$ bg %2
6. press fg and press Enter, then proceed with Ctrl
-Z to pause.
https://github.com/syaifulahdan/os­practice|Operating System Practice |19 to 45 
7. View the job with ps -fae command and press
Enter. Then stop the process with the kill command.
8. Logout and press Alt + F7 to return to graphics
mode
$ ps -fae
$ kill -9 <NomorPID>
https://github.com/syaifulahdan/os­practice|Operating System Practice |20 to 45 
Experiment 6 : Experiment with
Priority Scheduling
1. Login as root.
2. Open 3 terminals, display on the same screen
3. On each terminal, type PS1="w:" followed by
Enter. w: displays the path in the home directory.
PS1=w:
4. Because login as root, it will be displayed ~: at
each terminal. For each terminal type pwd and press
Enter to see that you are in the /root directory.
https://github.com/syaifulahdan/os­practice|Operating System Practice |21 to 45 
5. Open the terminal again (fourth), set the position so
that all four terminals are visible on the screen.
6. In the fourth terminal, type in top and press
Enter.Then the top program will appear. Type i. Top
will show the active process. Type lmt. Top no longer
displays information at the top of the screen. In this
experiment, the fourth terminal is the Top window.
7. In terminal 1, open the C ++ executable program
by typing the yes program and pressing Enter.
8. Repeat step 7 for terminal 2.
https://github.com/syaifulahdan/os­practice|Operating System Practice |22 to 45 
9. The Top window will display two yes programs as
the running process.
The% CPU value is the same in both. This means both
processes consume the same processing time and run
just as fast.
The PID of the two processes will be different, for
example 3148 and 3149.
Then use terminal 3 (which does not run primes or
Top Window) and type renice 19 <PID terminal 1>
(example: renice 19 3148) and followed by Enter.
This means changing the priority scheduling of the
19th process.
https://github.com/syaifulahdan/os­practice|Operating System Practice |23 to 45 
10. Wait a while until the top program changes and is
visible in the Top window. In the STAT column shows N
for process 3148. This means that the priority
scheduling for the 3148 process is greater (slower)
than 0. 3149 process runs faster.
11. The top program also has the same function as the
renice program. Select Top Window and press r.
Top program there is prompt PID to renice: press
3148 (remember that you must replace 3148 with your
own PID) and press Enter.
The top program gives prompt Renice PID 3148 to
value: press -19 and press Enter.
https://github.com/syaifulahdan/os­practice|Operating System Practice |24 to 45 
12. Wait a while until top changes and see the% CPU
values in both processes.
Now process 3148 faster than process 3149. Column
status shows <on process 3148 which shows lower
priority scheduling (faster) than value 0.
13. Select terminal 3 (which is not running yes or top
program) and type nice -n -10 yes and press Enter.
Wait a few moments for the top program to change
and you will see a third prime process. For example its
PID 4107. Option -10 is in the NI column (priority
scheduling).
https://github.com/syaifulahdan/os­practice|Operating System Practice |25 to 45 
14. Do not use the mouse and keyboard for 10
seconds. The top program displays an active process
in addition to the yes program.
Then it will look top listed process but% small CPU
(below 1.0) and consistent. Also visible process
related to graphical desktop like X, panel etc.
15. Move the mouse so that the cursor changes on the
screen and see what happens with the top view.
Additional processes will appear and the% CPU values
change as the graphics section works.
One reason is that the 4107 process is running on
high priority scheduling.
https://github.com/syaifulahdan/os­practice|Operating System Practice |26 to 45 
Select the Top window, type r. PID to renice:
prompt appears. Type 4107 (change 4107 with your
PID) and press Enter. Renice PID 4107 to value:
prompt appears. Type 0 and press Enter. Now move
the mouse around the screen. View the changes.
Select the Top window, type r. PID to renice:
prompt appears. Type 4107 (change 4107 with your
PID) and press Enter. Renice PID 4107 to value:
prompt appears. Type 0 and press Enter. Now move
the mouse around the screen. View the changes.
16. Close all terminal windows.
17. Logout and log back in as user.
https://github.com/syaifulahdan/os­practice|Operating System Practice |27 to 45 
E. Exercise
https://github.com/syaifulahdan/os­practice|Operating System Practice |28 to 45 

Exercise : Practice 4B
1 Sign in to tty2 with Ctrl + Alt + F2. Type ps ­au and press Enter.
Then note the output as follows:
a. Mention names of processes that are not root.
b. Write PID and COMMAND from most CPU time process.
c. Mention the process and PID of the process.
d. Mention some daemon processes
e. At the login prompt do the following:
 $  csh
   $  who
   $  bash
   $  ls
   $  sh
   $  ps
f. Mention the largest PID and then order the sequence of
processes up to PPID = 1.
https://github.com/syaifulahdan/os­practice|Operating System Practice |29 to 45 
2 Try the ps display format with the following options and note the results:
 -f : full list
 -j : job format
 j : job control format
 I : longitudinal list
 s : signal format
 v : virtual memory format
 X : i386 register format
3 Do the following work sequences:
a. Use the find command to the entire directory on the system, turn
the output so that the directory list is redirected to the
directories.txt file and the list of error messages is redirected to
the errors.txt file
b. Use the command sleep 5. What happened to this command?
c. Run command in background using &
https://github.com/syaifulahdan/os­practice|Operating System Practice |30 to 45 
d. Run sleep 15 on foreground,
- pause with Ctrl-Z and then put in background with bg.
- Type jobs.
- Type ps.
- Return the job to foreground with the fg command.
e. Run sleep 15 in background using & and then use kill command
to stop process followed by job number.
f. Run sleep  15 in the background using & and then use kill to
pause the process. Use bg to continue running the process
g. Run sleep 60 on the background 5 times and terminate it all on by
using the killall command.
h. Use the ps, w and top commands to show all the processes that are
being executed.
I. Use the ps ­aeH command to display the process hierarchy. Look for
init process. Can you identify an important daemon system? Can you
identify shell and subproses?
https://github.com/syaifulahdan/os­practice|Operating System Practice |31 to 45 
j. Combine ps ­fae and grep, what do you see?
k. Run the sleep 300 process in the background. Log off the
computer and log back in. See a list of all running processes. What
happens to the sleep process?
https://github.com/syaifulahdan/os­practice|Operating System Practice |32 to 45 

Practice Report : Practice 4B
1 Analyze your experimental results.
2 Do the above exercises and analyze the results.
3 Give a conclusion from this lab.
https://github.com/syaifulahdan/os­practice|Operating System Practice |33 to 45 

“Pleasure in a job makes perfection on the results 
achieved”. Aristoteles

“Believe you can. You're halfway”. Theodore Roosevelt

“You might be able to delay, but time will not wait”. 
Benjamin Franklin 

“The effort will work if someone does not give up”. 
Napoleon Hill

“Opportunity to find a better strength in us arises 
when life seems to be very challenging”. Joseph 
Campbell

More Related Content

What's hot

Concurrency: Mutual Exclusion and Synchronization
Concurrency: Mutual Exclusion and SynchronizationConcurrency: Mutual Exclusion and Synchronization
Concurrency: Mutual Exclusion and SynchronizationAnas Ebrahim
 
Ch7 Process Synchronization galvin
Ch7 Process Synchronization galvinCh7 Process Synchronization galvin
Ch7 Process Synchronization galvinShubham Singh
 
Lec11 semaphores
Lec11 semaphoresLec11 semaphores
Lec11 semaphoresanandammca
 
Synchronization hardware
Synchronization hardwareSynchronization hardware
Synchronization hardwareSaeram Butt
 
How to build a feedback loop in software
How to build a feedback loop in softwareHow to build a feedback loop in software
How to build a feedback loop in softwareSandeep Joshi
 
Operating System - Monitors (Presentation)
Operating System - Monitors (Presentation)Operating System - Monitors (Presentation)
Operating System - Monitors (Presentation)Experts Desk
 
Process synchronization(deepa)
Process synchronization(deepa)Process synchronization(deepa)
Process synchronization(deepa)Nagarajan
 
Operating Systems - Process Synchronization and Deadlocks
Operating Systems - Process Synchronization and DeadlocksOperating Systems - Process Synchronization and Deadlocks
Operating Systems - Process Synchronization and DeadlocksMukesh Chinta
 

What's hot (10)

Concurrency: Mutual Exclusion and Synchronization
Concurrency: Mutual Exclusion and SynchronizationConcurrency: Mutual Exclusion and Synchronization
Concurrency: Mutual Exclusion and Synchronization
 
Ch7 Process Synchronization galvin
Ch7 Process Synchronization galvinCh7 Process Synchronization galvin
Ch7 Process Synchronization galvin
 
Process synchronization in operating system
Process synchronization in operating systemProcess synchronization in operating system
Process synchronization in operating system
 
Lec11 semaphores
Lec11 semaphoresLec11 semaphores
Lec11 semaphores
 
Synchronization hardware
Synchronization hardwareSynchronization hardware
Synchronization hardware
 
How to build a feedback loop in software
How to build a feedback loop in softwareHow to build a feedback loop in software
How to build a feedback loop in software
 
SYNCHRONIZATION
SYNCHRONIZATIONSYNCHRONIZATION
SYNCHRONIZATION
 
Operating System - Monitors (Presentation)
Operating System - Monitors (Presentation)Operating System - Monitors (Presentation)
Operating System - Monitors (Presentation)
 
Process synchronization(deepa)
Process synchronization(deepa)Process synchronization(deepa)
Process synchronization(deepa)
 
Operating Systems - Process Synchronization and Deadlocks
Operating Systems - Process Synchronization and DeadlocksOperating Systems - Process Synchronization and Deadlocks
Operating Systems - Process Synchronization and Deadlocks
 

Similar to Operating System Practice : Meeting 6- process and manajemen proces-b-slide

Operating System Practice : Meeting 5- process and manajemen proces-a-slide
Operating System Practice : Meeting 5- process and manajemen proces-a-slideOperating System Practice : Meeting 5- process and manajemen proces-a-slide
Operating System Practice : Meeting 5- process and manajemen proces-a-slideSyaiful Ahdan
 
Operating System Practice : Meeting 3 - operasi input output-slide
Operating System Practice : Meeting 3 - operasi input output-slideOperating System Practice : Meeting 3 - operasi input output-slide
Operating System Practice : Meeting 3 - operasi input output-slideSyaiful Ahdan
 
Lab report 201001067_201001104
Lab report 201001067_201001104Lab report 201001067_201001104
Lab report 201001067_201001104swena_gupta
 
Lab report 201001067_201001104
Lab report 201001067_201001104Lab report 201001067_201001104
Lab report 201001067_201001104swena_gupta
 
ECET 360 help A Guide to career/Snaptutorial
ECET 360 help A Guide to career/SnaptutorialECET 360 help A Guide to career/Snaptutorial
ECET 360 help A Guide to career/Snaptutorialpinck2380
 
ECET 360 help A Guide to career/Snaptutorial
ECET 360 help A Guide to career/SnaptutorialECET 360 help A Guide to career/Snaptutorial
ECET 360 help A Guide to career/Snaptutorialpinck200
 
Flow based programming in golang
Flow based programming in golangFlow based programming in golang
Flow based programming in golangAnton Stepanenko
 
Ecet 360 Enthusiastic Study / snaptutorial.com
Ecet 360 Enthusiastic Study / snaptutorial.comEcet 360 Enthusiastic Study / snaptutorial.com
Ecet 360 Enthusiastic Study / snaptutorial.comStephenson34
 
Ecet 360 Success Begins / snaptutorial.com
Ecet 360  Success Begins / snaptutorial.comEcet 360  Success Begins / snaptutorial.com
Ecet 360 Success Begins / snaptutorial.comWilliamsTaylorzl
 
Ecet 360 Massive Success / snaptutorial.com
Ecet 360 Massive Success / snaptutorial.comEcet 360 Massive Success / snaptutorial.com
Ecet 360 Massive Success / snaptutorial.comHarrisGeorgx
 
System Administration: Linux Process
System Administration: Linux ProcessSystem Administration: Linux Process
System Administration: Linux Processlucita cabral
 
Programming Assignment #2CSci 430 Spring 2019Dates.docx
Programming Assignment #2CSci 430 Spring 2019Dates.docxProgramming Assignment #2CSci 430 Spring 2019Dates.docx
Programming Assignment #2CSci 430 Spring 2019Dates.docxstilliegeorgiana
 
Programming Assignment #2CSci 430 Spring 2019Dates.docx
Programming Assignment #2CSci 430 Spring 2019Dates.docxProgramming Assignment #2CSci 430 Spring 2019Dates.docx
Programming Assignment #2CSci 430 Spring 2019Dates.docxdenneymargareta
 
Unit II - 1 - Operating System Process
Unit II - 1 - Operating System ProcessUnit II - 1 - Operating System Process
Unit II - 1 - Operating System Processcscarcas
 

Similar to Operating System Practice : Meeting 6- process and manajemen proces-b-slide (20)

Operating System Practice : Meeting 5- process and manajemen proces-a-slide
Operating System Practice : Meeting 5- process and manajemen proces-a-slideOperating System Practice : Meeting 5- process and manajemen proces-a-slide
Operating System Practice : Meeting 5- process and manajemen proces-a-slide
 
Operating System Practice : Meeting 3 - operasi input output-slide
Operating System Practice : Meeting 3 - operasi input output-slideOperating System Practice : Meeting 3 - operasi input output-slide
Operating System Practice : Meeting 3 - operasi input output-slide
 
Lab report 201001067_201001104
Lab report 201001067_201001104Lab report 201001067_201001104
Lab report 201001067_201001104
 
Lab report 201001067_201001104
Lab report 201001067_201001104Lab report 201001067_201001104
Lab report 201001067_201001104
 
ECET 360 help A Guide to career/Snaptutorial
ECET 360 help A Guide to career/SnaptutorialECET 360 help A Guide to career/Snaptutorial
ECET 360 help A Guide to career/Snaptutorial
 
ECET 360 help A Guide to career/Snaptutorial
ECET 360 help A Guide to career/SnaptutorialECET 360 help A Guide to career/Snaptutorial
ECET 360 help A Guide to career/Snaptutorial
 
Flow based programming in golang
Flow based programming in golangFlow based programming in golang
Flow based programming in golang
 
LP-Unit3.docx
LP-Unit3.docxLP-Unit3.docx
LP-Unit3.docx
 
Ecet 360 Enthusiastic Study / snaptutorial.com
Ecet 360 Enthusiastic Study / snaptutorial.comEcet 360 Enthusiastic Study / snaptutorial.com
Ecet 360 Enthusiastic Study / snaptutorial.com
 
Ecet 360 Success Begins / snaptutorial.com
Ecet 360  Success Begins / snaptutorial.comEcet 360  Success Begins / snaptutorial.com
Ecet 360 Success Begins / snaptutorial.com
 
Ecet 360 Massive Success / snaptutorial.com
Ecet 360 Massive Success / snaptutorial.comEcet 360 Massive Success / snaptutorial.com
Ecet 360 Massive Success / snaptutorial.com
 
System Administration: Linux Process
System Administration: Linux ProcessSystem Administration: Linux Process
System Administration: Linux Process
 
Programming Assignment #2CSci 430 Spring 2019Dates.docx
Programming Assignment #2CSci 430 Spring 2019Dates.docxProgramming Assignment #2CSci 430 Spring 2019Dates.docx
Programming Assignment #2CSci 430 Spring 2019Dates.docx
 
Programming Assignment #2CSci 430 Spring 2019Dates.docx
Programming Assignment #2CSci 430 Spring 2019Dates.docxProgramming Assignment #2CSci 430 Spring 2019Dates.docx
Programming Assignment #2CSci 430 Spring 2019Dates.docx
 
Multiprocessing in python
Multiprocessing in pythonMultiprocessing in python
Multiprocessing in python
 
Unit II - 1 - Operating System Process
Unit II - 1 - Operating System ProcessUnit II - 1 - Operating System Process
Unit II - 1 - Operating System Process
 
ch3 (1).ppt
ch3 (1).pptch3 (1).ppt
ch3 (1).ppt
 
ch3.ppt
ch3.pptch3.ppt
ch3.ppt
 
Lecture_Process.ppt
Lecture_Process.pptLecture_Process.ppt
Lecture_Process.ppt
 
ch3.ppt
ch3.pptch3.ppt
ch3.ppt
 

More from Syaiful Ahdan

Sertifikat EC00202128391
 Sertifikat EC00202128391 Sertifikat EC00202128391
Sertifikat EC00202128391Syaiful Ahdan
 
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...Syaiful Ahdan
 
Sertifikat ec00202059774
Sertifikat ec00202059774Sertifikat ec00202059774
Sertifikat ec00202059774Syaiful Ahdan
 
Sertifikat ec00202059775
Sertifikat ec00202059775Sertifikat ec00202059775
Sertifikat ec00202059775Syaiful Ahdan
 
Sertifikat EC00202045078
Sertifikat EC00202045078Sertifikat EC00202045078
Sertifikat EC00202045078Syaiful Ahdan
 
Sertifikat EC00202044723
 Sertifikat EC00202044723 Sertifikat EC00202044723
Sertifikat EC00202044723Syaiful Ahdan
 
Sertifikat EC00202023523
Sertifikat EC00202023523Sertifikat EC00202023523
Sertifikat EC00202023523Syaiful Ahdan
 
Sertifikat EC00201826309
Sertifikat EC00201826309Sertifikat EC00201826309
Sertifikat EC00201826309Syaiful Ahdan
 
Sertifikat EC00202023149
Sertifikat EC00202023149Sertifikat EC00202023149
Sertifikat EC00202023149Syaiful Ahdan
 
Sertifikat EC00202022868
Sertifikat EC00202022868Sertifikat EC00202022868
Sertifikat EC00202022868Syaiful Ahdan
 
Sertifikat EC00202021343
Sertifikat EC00202021343Sertifikat EC00202021343
Sertifikat EC00202021343Syaiful Ahdan
 
Sertifikat EC00202022755
Sertifikat EC00202022755Sertifikat EC00202022755
Sertifikat EC00202022755Syaiful Ahdan
 
Sertifikat EC00201987196
Sertifikat EC00201987196Sertifikat EC00201987196
Sertifikat EC00201987196Syaiful Ahdan
 
Sertifikat EC00201856484
Sertifikat EC00201856484Sertifikat EC00201856484
Sertifikat EC00201856484Syaiful Ahdan
 
Sertifikat EC00201856352
Sertifikat EC00201856352Sertifikat EC00201856352
Sertifikat EC00201856352Syaiful Ahdan
 
Sertifikat EC00201856994
Sertifikat EC00201856994Sertifikat EC00201856994
Sertifikat EC00201856994Syaiful Ahdan
 
Sertifikat EC00201856895
Sertifikat EC00201856895Sertifikat EC00201856895
Sertifikat EC00201856895Syaiful Ahdan
 
Meeting 2 introdcution network administrator
Meeting 2   introdcution network administratorMeeting 2   introdcution network administrator
Meeting 2 introdcution network administratorSyaiful Ahdan
 

More from Syaiful Ahdan (20)

Sertifikat EC00202128391
 Sertifikat EC00202128391 Sertifikat EC00202128391
Sertifikat EC00202128391
 
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...
 
Sertifikat ec00202059774
Sertifikat ec00202059774Sertifikat ec00202059774
Sertifikat ec00202059774
 
Sertifikat ec00202059775
Sertifikat ec00202059775Sertifikat ec00202059775
Sertifikat ec00202059775
 
Sertifikat EC00202045078
Sertifikat EC00202045078Sertifikat EC00202045078
Sertifikat EC00202045078
 
Sertifikat EC00202044723
 Sertifikat EC00202044723 Sertifikat EC00202044723
Sertifikat EC00202044723
 
Sertifikat EC00202023523
Sertifikat EC00202023523Sertifikat EC00202023523
Sertifikat EC00202023523
 
Sertifikat EC00201826309
Sertifikat EC00201826309Sertifikat EC00201826309
Sertifikat EC00201826309
 
Sertifikat EC00202023149
Sertifikat EC00202023149Sertifikat EC00202023149
Sertifikat EC00202023149
 
Sertifikat EC00202022868
Sertifikat EC00202022868Sertifikat EC00202022868
Sertifikat EC00202022868
 
Sertifikat EC00202021343
Sertifikat EC00202021343Sertifikat EC00202021343
Sertifikat EC00202021343
 
Sertifikat EC00202022755
Sertifikat EC00202022755Sertifikat EC00202022755
Sertifikat EC00202022755
 
Sertifikat EC00201987196
Sertifikat EC00201987196Sertifikat EC00201987196
Sertifikat EC00201987196
 
Sertifikat EC00201856484
Sertifikat EC00201856484Sertifikat EC00201856484
Sertifikat EC00201856484
 
Sertifikat EC00201856352
Sertifikat EC00201856352Sertifikat EC00201856352
Sertifikat EC00201856352
 
Sertifikat EC00201856994
Sertifikat EC00201856994Sertifikat EC00201856994
Sertifikat EC00201856994
 
Sertifikat EC00201856895
Sertifikat EC00201856895Sertifikat EC00201856895
Sertifikat EC00201856895
 
Meeting 2 introdcution network administrator
Meeting 2   introdcution network administratorMeeting 2   introdcution network administrator
Meeting 2 introdcution network administrator
 
Pertemuan 5
Pertemuan 5Pertemuan 5
Pertemuan 5
 
Pertemuan 4
Pertemuan 4Pertemuan 4
Pertemuan 4
 

Recently uploaded

Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 

Recently uploaded (20)

Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 

Operating System Practice : Meeting 6- process and manajemen proces-b-slide

  • 1. https://github.com/syaifulahdan/os­practice|Operating System Practice |1 to 45  OPERATING SYSTEMS PRACTICE Process and Management Process Practice : 4B  Process on Linux Operating System  Process Management on Linux Operating Systems https://github.com/syaifulahdan/os­practice|
  • 2. https://github.com/syaifulahdan/os­practice|Operating System Practice |2 to 45  A. Objectives 1. Understand the process concepts in Linux operating system. 2. Shows some ways of showing parent and child process relationships. 3. Displays the status of a process with several different formats. 4. Controlling the process on the shell. 5. Understanding priority scheduling.
  • 4. https://github.com/syaifulahdan/os­practice|Operating System Practice |4 to 45  1. Concept Proces on linux OS  Process is the program being executed.  Whenever using the system utility or application program from the shell, one or more "child" processes will be created by the shell according to the given command.  Each time the instruction is given in the Linux shell, the kernel creates an id-process.  This process is also called the Unix terminology as a Job.  The process Id (PID) starts from 0, the INIT process, followed by the next process (listed in /etc  /inittab).
  • 5. https://github.com/syaifulahdan/os­practice|Operating System Practice |5 to 45   Several types of processes:  Foreground Processes created by the user directly at the terminal (interactive, dialog)  Batch Processes are collected and executed sequentially (one by one). Batch Prose is not associated (interacting) with terminal.  Daemon Processes that wait for requests from other processes and perform tasks according to the request. If there is no request, then this program will be in "idle" and do not use CPU count time. Generally the name of the daemon process in UNIX ends in d, for example inetd,  named,  popd etc.
  • 6. https://github.com/syaifulahdan/os­practice|Operating System Practice |6 to 45  2. Signal The process can send and receive signals from and to other processes. The process of sending a signal through the instruction "kill" with the format. kill [­nomor sinyal] PID Signal number: 1 to maximum signal number defined by system The most important signal number standard is:
  • 7. https://github.com/syaifulahdan/os­practice|Operating System Practice |7 to 45  No Signal Name Description 1 SIGHUP Hangup, signals are sent when the process is disconnected, for example through the breaking of the modem connection 2 SIGINT Interrupt signal, through ^ C 3 SIGQUIT Quit signal, via ^ 9 SIGKILL Signal Kill, stop the process 15 SIGTERM Software termination signals
  • 8. https://github.com/syaifulahdan/os­practice|Operating System Practice |8 to 45  3. Sending Signal Sending a signal is a communication tool between processes, which tells the ongoing process that something must be controlled. Based on the signal sent this process can react and the administrator / programmer can determine the reaction. Sending signals using instructions kill [­nomor sinyal] PID Before sending the PID signal the process to be sent must be known first.
  • 9. https://github.com/syaifulahdan/os­practice|Operating System Practice |9 to 45  4. Control Process on Shell  Shell provides a job control facility that allows control of multiple jobs or processes that are running at the same time.  For example when doing text file editing and want to do interrupt editing to do other things.  When done, can return (switch) to the editor and do the text file editing again.  Job works on foreground or background.  In foreground only for one job at a time.  Job on the foreground will control the shell - receive input from the keyboard and send output to the screen.  The job in the background does not accept input from the terminal, usually running without requiring interaction.
  • 10. https://github.com/syaifulahdan/os­practice|Operating System Practice |10 to 45   Job on the foreground may be suspended, with press [Ctrl- Z].  A paused job can be re-run in the foreground or background as needed by pressing "fg" or "bg".  For the record, stopping a temporary job is very different from doing an interrupt job (usually using [Ctrl-C]), where the interrupted job will be permanently disabled and can not be executed again.
  • 11. https://github.com/syaifulahdan/os­practice|Operating System Practice |11 to 45  5. Control Other Process  The ps command can be used to indicate all running processes on the machine (not just processes in the current shell) with the format : ps –fae or ps ­aux  Some versions of UNIX have a so-called top system utility that provides an interactive way to monitor system activity.  Statistics in detail with running processes are displayed and continually refreshed. The process is displayed in sequence from the CPU utility. A useful key on the top is
  • 12. https://github.com/syaifulahdan/os­practice|Operating System Practice |12 to 45  s – set update frequency u – display proses dari satu user k – kill proses (dengan PID) q – quit The utility for performing process controls can be found on UNIX systems is the killall command. This command will stop the process according to PID or job number process.
  • 14. https://github.com/syaifulahdan/os­practice|Operating System Practice |14 to 45  1 Login as user. 2 Download the C ++ program to display primes named primes. 3 Conduct the experiments below and then analyze the experimental results. 4 Complete the practice questions.
  • 16. https://github.com/syaifulahdan/os­practice|Operating System Practice |16 to 45  $ yes > /dev/null Experiment 5 : Stop and resume jobs 1. Another way to put a job in the background is to start the job normally (in the foreground), stop job and start again in the background. Pause the job (suspend), not stop it (terminate), but pause the job until the restart. To pause the job use Ctrl-Z. 2. To restart a job in foreground, use the fg command. $ fg
  • 17. https://github.com/syaifulahdan/os­practice|Operating System Practice |17 to 45  3. Shell will display the name of the command placed in the foreground. Stop job again with Ctrl-Z. Then use the bg command to put the job in the background. Job can not be stopped with Ctrl-Z because job is in background. To stop it, put the job on foreground with fg and then pause with Ctrl-Z. $ bg $ fg 4. Job in the background can be used to display text on the terminal, which can be ignored if trying to do other jobs. $ yes &
  • 18. https://github.com/syaifulahdan/os­practice|Operating System Practice |18 to 45  To stop it can not use Ctrl-C. Job should be moved to foreground, just stopped by pressing fg and press Enter, then proceed with Ctrl-Z to pause. 5. If you want to run multiple jobs at one time, put a job in the foreground or background by assigning a job ID $ fg %2 or $ %2 $ bg %2 6. press fg and press Enter, then proceed with Ctrl -Z to pause.
  • 19. https://github.com/syaifulahdan/os­practice|Operating System Practice |19 to 45  7. View the job with ps -fae command and press Enter. Then stop the process with the kill command. 8. Logout and press Alt + F7 to return to graphics mode $ ps -fae $ kill -9 <NomorPID>
  • 20. https://github.com/syaifulahdan/os­practice|Operating System Practice |20 to 45  Experiment 6 : Experiment with Priority Scheduling 1. Login as root. 2. Open 3 terminals, display on the same screen 3. On each terminal, type PS1="w:" followed by Enter. w: displays the path in the home directory. PS1=w: 4. Because login as root, it will be displayed ~: at each terminal. For each terminal type pwd and press Enter to see that you are in the /root directory.
  • 21. https://github.com/syaifulahdan/os­practice|Operating System Practice |21 to 45  5. Open the terminal again (fourth), set the position so that all four terminals are visible on the screen. 6. In the fourth terminal, type in top and press Enter.Then the top program will appear. Type i. Top will show the active process. Type lmt. Top no longer displays information at the top of the screen. In this experiment, the fourth terminal is the Top window. 7. In terminal 1, open the C ++ executable program by typing the yes program and pressing Enter. 8. Repeat step 7 for terminal 2.
  • 22. https://github.com/syaifulahdan/os­practice|Operating System Practice |22 to 45  9. The Top window will display two yes programs as the running process. The% CPU value is the same in both. This means both processes consume the same processing time and run just as fast. The PID of the two processes will be different, for example 3148 and 3149. Then use terminal 3 (which does not run primes or Top Window) and type renice 19 <PID terminal 1> (example: renice 19 3148) and followed by Enter. This means changing the priority scheduling of the 19th process.
  • 23. https://github.com/syaifulahdan/os­practice|Operating System Practice |23 to 45  10. Wait a while until the top program changes and is visible in the Top window. In the STAT column shows N for process 3148. This means that the priority scheduling for the 3148 process is greater (slower) than 0. 3149 process runs faster. 11. The top program also has the same function as the renice program. Select Top Window and press r. Top program there is prompt PID to renice: press 3148 (remember that you must replace 3148 with your own PID) and press Enter. The top program gives prompt Renice PID 3148 to value: press -19 and press Enter.
  • 24. https://github.com/syaifulahdan/os­practice|Operating System Practice |24 to 45  12. Wait a while until top changes and see the% CPU values in both processes. Now process 3148 faster than process 3149. Column status shows <on process 3148 which shows lower priority scheduling (faster) than value 0. 13. Select terminal 3 (which is not running yes or top program) and type nice -n -10 yes and press Enter. Wait a few moments for the top program to change and you will see a third prime process. For example its PID 4107. Option -10 is in the NI column (priority scheduling).
  • 25. https://github.com/syaifulahdan/os­practice|Operating System Practice |25 to 45  14. Do not use the mouse and keyboard for 10 seconds. The top program displays an active process in addition to the yes program. Then it will look top listed process but% small CPU (below 1.0) and consistent. Also visible process related to graphical desktop like X, panel etc. 15. Move the mouse so that the cursor changes on the screen and see what happens with the top view. Additional processes will appear and the% CPU values change as the graphics section works. One reason is that the 4107 process is running on high priority scheduling.
  • 26. https://github.com/syaifulahdan/os­practice|Operating System Practice |26 to 45  Select the Top window, type r. PID to renice: prompt appears. Type 4107 (change 4107 with your PID) and press Enter. Renice PID 4107 to value: prompt appears. Type 0 and press Enter. Now move the mouse around the screen. View the changes. Select the Top window, type r. PID to renice: prompt appears. Type 4107 (change 4107 with your PID) and press Enter. Renice PID 4107 to value: prompt appears. Type 0 and press Enter. Now move the mouse around the screen. View the changes. 16. Close all terminal windows. 17. Logout and log back in as user.
  • 28. https://github.com/syaifulahdan/os­practice|Operating System Practice |28 to 45   Exercise : Practice 4B 1 Sign in to tty2 with Ctrl + Alt + F2. Type ps ­au and press Enter. Then note the output as follows: a. Mention names of processes that are not root. b. Write PID and COMMAND from most CPU time process. c. Mention the process and PID of the process. d. Mention some daemon processes e. At the login prompt do the following:  $  csh    $  who    $  bash    $  ls    $  sh    $  ps f. Mention the largest PID and then order the sequence of processes up to PPID = 1.
  • 29. https://github.com/syaifulahdan/os­practice|Operating System Practice |29 to 45  2 Try the ps display format with the following options and note the results:  -f : full list  -j : job format  j : job control format  I : longitudinal list  s : signal format  v : virtual memory format  X : i386 register format 3 Do the following work sequences: a. Use the find command to the entire directory on the system, turn the output so that the directory list is redirected to the directories.txt file and the list of error messages is redirected to the errors.txt file b. Use the command sleep 5. What happened to this command? c. Run command in background using &
  • 30. https://github.com/syaifulahdan/os­practice|Operating System Practice |30 to 45  d. Run sleep 15 on foreground, - pause with Ctrl-Z and then put in background with bg. - Type jobs. - Type ps. - Return the job to foreground with the fg command. e. Run sleep 15 in background using & and then use kill command to stop process followed by job number. f. Run sleep  15 in the background using & and then use kill to pause the process. Use bg to continue running the process g. Run sleep 60 on the background 5 times and terminate it all on by using the killall command. h. Use the ps, w and top commands to show all the processes that are being executed. I. Use the ps ­aeH command to display the process hierarchy. Look for init process. Can you identify an important daemon system? Can you identify shell and subproses?
  • 31. https://github.com/syaifulahdan/os­practice|Operating System Practice |31 to 45  j. Combine ps ­fae and grep, what do you see? k. Run the sleep 300 process in the background. Log off the computer and log back in. See a list of all running processes. What happens to the sleep process?
  • 32. https://github.com/syaifulahdan/os­practice|Operating System Practice |32 to 45   Practice Report : Practice 4B 1 Analyze your experimental results. 2 Do the above exercises and analyze the results. 3 Give a conclusion from this lab.
  • 33. https://github.com/syaifulahdan/os­practice|Operating System Practice |33 to 45   “Pleasure in a job makes perfection on the results  achieved”. Aristoteles  “Believe you can. You're halfway”. Theodore Roosevelt  “You might be able to delay, but time will not wait”.  Benjamin Franklin   “The effort will work if someone does not give up”.  Napoleon Hill  “Opportunity to find a better strength in us arises  when life seems to be very challenging”. Joseph  Campbell