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

Define WCF ABC , Diffrent Contract. Diff b/w Wcf and in webservice

2 Answers   Syntel,


What is asp.net used for?

0 Answers  


Why is global asax is used?

0 Answers  


What is the main function of razor in asp.net? : asp.net mvc

1 Answers  


How does asp.net work?

0 Answers  






What for use web.sitemap in asp.net?

1 Answers  


I have been asked in an interview What is your LOC(Line of Code)What will be the probable answer for that

1 Answers   HCL, Infosys, Mantec Consultants,


What is the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"?

1 Answers   Innvectra,


What is form method?

0 Answers  


How long should a session id be?

0 Answers  


Why is xap important?

0 Answers  


How to change the form layout in ASp.net 2.0 ?

1 Answers   Netsweeper,


Categories