Can you explain to me the difference between a thread and a process from an operating system point of view. I have seen many answers which are explaining this from an application point of view.
Asked
Active
Viewed 358 times
1 Answers
1
Threads run in shared memory and process in other memory space.
They are both independent sequences of execution but proccess provide resources needed to execute a program like executable code and variables.
Threads contain a process but it contain also a scheduling priority and exception handler.
On linux you can show threads with this comand line : htop -h -p pidofprocess
-
Thanks Jean for your time. Can you explain me in detail."Process in other memory space" means?? Can you explain how to check these practically.Is there any command to check threads in process. – Latha Apr 07 '16 at 08:05
-
have you tried top -h -p 22362 ? Your error is here because htop is not installed (sudo apt-get htop). – Apr 07 '16 at 08:29