What is the difference between a 'thread' and a 'process'?
Answer Posted / swaroopa
Process is a program in execution whereas thread is a
separate path of execution in a program. Process & Thread
share almost all datastructure except (thread has it's own
register & stack area). Process is a program under
execution,but thread is a light weight process which has
seperate way of execution.Threads are part of
process.Single process can contain number of threads at a
time.
A process is a collection of virtual memory space, code,
data, and system resources.
All thread with in a process share process
instruction,code & data segment,open file descriptor,signal
handler,userID and GroupID.
Thread has its own set of register including program
counter,stack pointer
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What does $0 mean in shell script?
What is the syntax of while loop in shell scripting?
How to print all the arguments provided to the script?
How to find all the files modified in less than 3 days and save the record in a text file?
What exactly is a shell?
What is bash used for?
What is batch file programming?
What is scripting used for?
What happens when you type ls?
What is wc in shell script?
What language is bash?
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
What is a beat in a script?
Why is shell scripting important?
How does shell scripting work?