OSY Practical No.5
OSY Practical No.5
OSY Practical No.5
Practical No:-5.
Aim:- Execute process commands.
Course Outcomes:
Execute process commands for performing process management
operations.
Practical Outcomes:
Execute process commands-ps, wait, sleep, exit, kill.
Resources Used:
2. Give PID of all processes, how you will terminal the processes
running on your terminal.
$ps -A: This command will help to terminal all the processes running
on in any terminal and will show the PID of all processes.
Output:
3. What is the difference between wait and sleep?
Sleep Wait
It is used to hold the It puts thread in waiting
process state and it won’t back
automatically
It doesn’t release the lock It releases the lock while
while waiting waiting
It is used to produce pause It is used for inter-thread
on execution communication
Calls on thread Calls on object
Practical Related Questions:
1. What is the name of your login shell?
echo “My current shell is $SHELL($0)” This command will let us know
the name of our current login shell.
Exercise:
1. Observe the output of following commands?
a) $ echo$$
Output :-
b) $sleep 10;date
Output :-
Output:
Conclusion:
Hence, I have successfully executed various process commands on my
personal Linux window.