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

In a page there is dropdown list with the name of the cities like Bangalore,Pune,Chennai,Other and a text box that would enable the user to enter the name of the city if other is selected. How to enable validation on the text box if other is selected

1 Answers  


What kind of data can be stored in viewstate?

0 Answers  


AJAX - explain the concept and some controls like update panel, tabcontrol etc

2 Answers   Syntel,


What is a windows service?

0 Answers  


How do we ensure view state has not tampered?

0 Answers  






What is source control?How to use in asp.net?

1 Answers  


How to set the pane area to transparent of a scrollPane component.?

0 Answers   MCN Solutions,


What are typed datasets?

1 Answers   IBS,


How many web.copnfig can exists in a web application & which will be used ?

3 Answers   MMTS,


What is WCF? Pls Explain clearly with exmple.

3 Answers   HCL, iGate,


How does viewstate work?

0 Answers  


How do you manage session in ASP and ASP.NET?

1 Answers   Microsoft,


Categories