On Mon, 10 Jan 2005 22:44:44 +0530, Swaminathan S R <[EMAIL PROTECTED]> wrote:
> Thanks for the reply.
>
> I have a couple of questions from your answers ::
>
> 1. If the DLLs are not loaded, then why does each process consume equal
> amount of memory?
>         I took the process wise memory consumption (using the
> "tasklist") and two instances of the same exe were occupying almost same
> quantum of memory.

Because Windows will count the memory used by the DLL in each process
(since each process is using that much memory); however, only one copy
of the DLL is actually loaded; the virtual pages in each process'
memory space will simply point to the same physical pages.

> 2. I was trying to visualize the CLR components as service(by comparing
> it with windows services running under svchost.exe). Where is my
> comparison wrong?

The .Net components aren't running in the background until/unless they
are loaded by a process.  Services generally run in the background
even when not needed (unless set to Manual or Disabled).  Also,
services are a separate process; the .Net components are loaded into
whatever process needs them.  The .Net components also cannot be
controlled by the Service Control Manager (the Control Panel applet
for services).

--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/

===================================
This list is hosted by DevelopMentor�  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to