I have a question about memory usage for compiled code of .net application.
I think that traditional DLL or EXE code is loaded into memory only once and
it's shared between processes and/or sessions.
However, i am not sure if this mechanism can be used for .net applications.
because from EXE or DLL file is loaded only MSIL code and this is JIT
compiled in memory. And my question is if this compiled code is shared
between processes too. I tried to find an article about this on MSDN, but i
couldn't. so if you know something useful then let me know.

I need to know this, because of of deploying .net applications to terminal
server. And i would like to know, if it is better to write unmanaged code for
terminal server, or for example use ngen.exe to precompile an application.

thank you in advance

Rasto Novotny