Professional Documents
Culture Documents
Act. 3 OS - XEGV-PARC
Act. 3 OS - XEGV-PARC
Ximena Gomez
Activity 1: processes & states
Goal:
Information:
Processes in Linux have various states from created, running, suspended to terminated.
Each state must be managed by the Kernel and for this it requires structures that allow
the manipulation and access to the data of each process.
Although creation will not be used in this lab, it is important to understand how a
process changes state and how it can be terminated if it is causing a problem with the
system.
Check with ps the processes in the system, identify PID and PPID. Now follow the next
steps.
1. Use the -ef options and locate the first process on the system, what number does
it have?
2. From that process, all others are created with fork(). Use the following commands
and consult with ps what happened:
Do the same thing 2 more times with different file names. Don't forget to use ps to
check the processes information and try to explain the function of “&”
No, it is not possible, because is blocked, we can only apply this with “-9” and we did it
then.
You give the Access to the kill function to kill/cancel all the process and take off
all the users.
6. Include a description of all the states of the processes listed . Use man kill.
Report
X: Process done.
One of the difficulties was that we didn’t find the state process lines, and actually
we don’t completely understand the function of the commands
The exciting was the part of that we can get in contact with our classmates and
other users, we can send messages and that was funny.
4. States of a process have a special value in this activitie (20%), point 8, try to
explain every state that appeared in your list of processes in point 2.
Pilar Rolon
Ximena Gomez