Service app domains?

  • Thread starter Thread starter Loki117
  • Start date Start date
L

Loki117

I have a question which I just got asked in an interview. How many app
domains can a c# service have?

Any ideas?
 
There is only one "Default" domain and several you own custom domains.
I don't remember if the number of that custom domains is limited - the
amount of you memmory is a limitation
I have a question which I just got asked in an interview. How many app
domains can a c# service have?

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Hello, Loki117!

L> I have a question which I just got asked in an interview. How many app
L> domains can a c# service have?

The same count as common process can have. AppDomain count is similar to processes count.
Both are limited by the OS resources, e.g. memory...

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 
When a Service starts, it runs in a single AppDomain just as any other .NET
executable (or an ASP.NET app as well).
However, a service, just like other app types, can create new AppDomains.

So theorectically, the answer would be "a service can create as many
appDomains as the environment (memory, threads, etc.) will permit.
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top