What is the difference between a Thread and Process?



What is the difference between a Thread and Process?..

Answer / krishpuneet

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.
Prior to the introduction of multiple threads of execution,
applications were all designed to run on a single thread of
execution.

When a thread begins to execute, it continues until it is
killed or until it is interrupted by a thread with higher
priority (by a user action or the kernel’s thread
scheduler). Each thread can run separate sections of code,
or multiple threads can execute the same section of code.
Threads executing the same block of code maintain separate
stacks. Each thread in a process shares that process’s
global variables and resources.

Is This Answer Correct ?    9 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is the difference between user control an custom control?

0 Answers  


Distinguish between Server-side and Client-side code?

0 Answers   Siebel,


Difference between dynamic query and static query ?

1 Answers   DELL,


What is session object? Describe in detail.

0 Answers  


If there are two web.config files in a application which config files will get priority?

5 Answers  






Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?

0 Answers  


Explain the difference between overriding and overloading?

0 Answers  


hi guys do u know how to go one page to one page to another page plz tell me any of u know

3 Answers  


Can we Run the Application without Build

3 Answers   Emphasis,


Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?

0 Answers  


1. What is the difference between Cache and Session? 2. I cache limited to page like viewstate or it's accessible through out the application like session? 3. Which one is better when I've some data that is to be used across the application? Why is to better than the other?

2 Answers   247Customer,


What is break mode?

0 Answers  


Categories