AppDomain vs Process

  • Thread starter Thread starter benben
  • Start date Start date
B

benben

What is exactly the difference b/w an AppDomain and a Process, they seem to
me very much the same -- boundary for an execution context with protected
resources.

ben
 
In short:

A process is a Win32 OS concept and it is the boundary for isolation of
native apps.

An appdomain is a .NET concept and it is the boundary for isolation of .NET
apps.

1 process can have 1 or more appdomains. Since processes are "expensive",
appdomains are a better solution for .NET applications, where the .NET
runtime (rather than the OS) can ensure the isolation.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
 
Carlos said:
1 process can have 1 or more appdomains. Since processes are "expensive",
appdomains are a better solution for .NET applications, where the .NET
runtime (rather than the OS) can ensure the isolation.

Is there any utility that can list the currently running App Domains
(preferably with an indicator of the process id associated with each)?

Is it possible to abort one app domain in a process without hurting the
other app domains in the same process?

Eric
 
Back
Top