Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between a Thread and Process?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What threading model used in asp and asp.net?

1062


What is paging in context of Memory?

1109


How do you identify that the page is postback?

930


What is considered a service provider?

952


What are navigation controls? How many navigation controls are there in ASP.NET 4.0?

954


What are the file extensions for razor views?

1143


What kind of data we can store in viewstate?

1047


What is data reader in asp.net?

1147


What is difference between datalist and gridview?

1077


How does asp.net work?

956


Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

972


How do we ensure view state has not tampered?

1021


List the types of authentication supported by asp.net?

940


How does http session work?

1005


How to fetch a data from one table to another table in asp.net ?

1044