What is the difference between a 'thread' and a 'process'?
Answer Posted / seshadri sethi
A process is a collection of virtual memory space, code,
data, and system resources. A thread is code that is to be
serially executed within a process. A processor executes
threads, not processes, so each application has at least one
process, and a process always has at least one thread of
execution, known as the primary thread. A process can have
multiple threads in addition to the primary thread
Thread – is stream of executable code within process. They
are light weight process. 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 ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the significance of the shebang line in shell scripting?
What are the default permissions of a file when it is created?
What is awk in shell script?
Explain about the exit command?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
Explain about login shell?
What is the first line in a shell script?
is this growing field and what is average package in this?
Please give me example of " at command , contrab command " how to use
Print the 10th line without using tail and head command.
What are the types of script?
What language is shell scripting?
What does it mean to debug a script?
What is bash shell command?
How do I open a jshell in cmd?