.Net processes and AppDomains

Following-up on the queries regarding Assemblies and compilation that day, if you can find out whether .Net PEs run in separate processes or the same process, do let me know.

I’ve been looking around but haven’t found anything.
There’s plenty of stuff about ASP.Net but nothing about winforms, console apps or PEs in general.

[I just tried this]

A simple
Console.WriteLine(System.Diagnostics.Process.GetCurrentProcess().Id);
In two different console apps (or even two instances of the same app) gives different values whereas a

Response.Write(System.Diagnostics.Process.GetCurrentProcess().Id);
For two different webapps gives the same value (as expected). But I wouldn’t consider this finding conclusive.

Also, checkout this great link on AppDomains
http://www.odetocode.com/Articles/305.aspx

Comments

Archive

Show more