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 is console line?
What is an inode block?
Why should we use shell scripts?
How do you debug a script?
Is shell scripting useful?
What is the command to find out today's date?
What is the use of a shebang line?
How do I open a jshell in cmd?
How to print pid of the current shell?
What is meant by dos operating system?
What does .sh file contain?
What can scripts do?
Tell something about the super block in shell scripting?
What is bash shell command?
Explain about login shell?