What is the difference between a 'thread' and a 'process'?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
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
| Is This Answer Correct ? | 0 Yes | 0 No |
How can the contents of a file inside jar be read without extracting in a shell script?
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
Why we are writting shell scripts? Plz if possible explain it briefly.
What is the use of "shift" command in passing parameters?
Is shell and terminal the same?
What is the first line in every perl script called?
What does $@ mean bash?
How will you find the 99th line of a file using only tail and head command?
What is a shell made of?
Explain how you Automate your application using Shell scripting.
Why is shell scripting important?
What is the way to do multilevel if-else's in shell scripting?