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
How do we create command aliases in a shell?
How do I run a .sh file?
Why do we write bin bash in shell scripts?
Where are cowrie shells found?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
Why do we use shell scripting?
What is a command line shell?
What are the types of script?
What's the difference between scripting and coding?
What is shift command in shell script?
How to print all the arguments provided to the script?
What is bash used for?
What is a shell script in windows?
How do I open the shell prompt?
What is eval in shell script?