What is an AppDomain? What is a process? What is thread? What is the difference between AppDomain and process?

Process:

A computer program is a set of instructions. Operating system executes a computer program by allocating a process for a program. Several processes may be associated with the execution of a single program. A process is an instance of machine code associated with a program. It has memory for instructions, data, a call stack and a heap

AppDomain:

An AppDomain is a light-weight process which separates one application in .NET with another. CLR creates an AppDomain when an application is loaded. Each application will have an AppDomain associated. Each AppDomain can have different threads running in it. Each app domain will have its associated code, data and configuration. Hence when one application crashes, it does not affect other.


Thread:

Each process can have multiple threads. Multiple threads can share same execution code and resources.
A multi-threaded process can perform several tasks concurrently.
Tags:
Hot on Web:


About author