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
Explain about stdin, stdout and stderr?
What is shell application?
What is the significance of the shebang line in shell scripting?
What language is shell scripting?
What is the first line in a shell script?
What are the advantages of using shell scripts?
What is shell geeksforgeeks?
What language is used in terminal?
Explain about sourcing commands?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
What is computer cli?
How many fields are present in a crontab file and what does each field specify?
What are zombie processes?
Calculate a real number calculation directly from the terminal and not any shell script.
How can the contents of a file inside jar be read without extracting in a shell script?