Question:
What is the difference between thread and process?
Answer:
Thread - is used to execute more than one program at a time. process - executes single program
Or
A thread is a path of execution that run on CPU, a proccess is a collection of threads that share the same virtual memory. A process have at least one thread of execution, and a thread always run in a process context. Source: CoolInterview.com
Thread - is used to execute more than one program at a time. process - executes single program
Or
A thread is a path of execution that run on CPU, a proccess is a collection of threads that share the same virtual memory. A process have at least one thread of execution, and a thread always run in a process context. Source: CoolInterview.com
Answered by: mukeshmahesh | Date: 5/11/2009
| Contact mukeshmahesh
thread-a process in execution process-is an environment involving physical attributes like memory allocation, resources etc Source: CoolInterview.com
Answered by: the joker | Date: 6/8/2009
| Contact the joker
A process is nothing but an instance of an application. A process includes memory, resources (files, semaphores) etc. A thread is an execution path within a process. Each process has one main thread and also can have multiple threads that will run sequentially.Black Source: CoolInterview.com
Answered by: Manjunath Maragal | Date: 1/20/2010
| Contact Manjunath Maragal
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|