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 4 15984
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
"benben" <be******@yahoo .com.au> escribió en el mensaje
news:ep******** ******@tk2msftn gp13.phx.gbl... 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
"benben" <be******@yahoo .com.au> escribió en el mensaje
news:ep******** ******@tk2msftn gp13.phx.gbl... 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
Carlos J. Quintero [.NET MVP] wrote: 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
Not sure, see if there is something at: http://msdn.microsoft.com/library/de...iondomains.asp http://msdn.microsoft.com/library/de...mberstopic.asp
--
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
"Eric" <Er**@nospam.co m> escribió en el mensaje
news:ew******** ******@tk2msftn gp13.phx.gbl... 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Daylor |
last post by:
in win32 process , when u create new process,u have new main thread.
i know,appDomain r logical procces,that exists in 1 win32 process.
the q:
is there way to create second appDomain (the first 1 is the defualt
appDomain) with his new ("main") thread ?
if not ,what is the easy and clear way to create new thread on the new
appDomain ?
|
by: Satinderpal Singh |
last post by:
Hi All,
I have an EXE, I load the DLL from that exe in a seperate AppDomain. (I have
not given reference to that DLL from the EXE).
Now, i call some commands of that dll from the EXE, and in the background i
try to delete the DLL, it does not allows (fair enough).
Now, I unload that AppDomain using AppDomain.Unload method. Now, I try to
delete that DLL from the background it still does not allows, I thought the
|
by: José Joye |
last post by:
I have a windows service where I create another appdomains. In the newly
created AppDomain, I make use of a C library. If I issue an Abort(1) within
this library, it simply hard stop my main AppDomain!!!!!!!!!!!!How could I
prevent my main AppDomain to stop when the other stopped?Thanks a lot,José
|
by: Chris Lacey |
last post by:
Hi,
I'm currently writing a scheduling service which starts a number DotNet
executables, each within a new AppDomain, every ten seconds.
The guts of the code is as follows:
// For each executable in the list of tasks
for (int i = 0; i < this.processTasks.Length; i++)
{
|
by: Raveendra M |
last post by:
Hi!
I am working with ASP.NET application. In my page I am
creating one Application Domain and in that domain I am
calling my DLL. Using the methods of the dll. And
unloading the Application Domain. Till this point it is
working fine.
My problem is, while web page is open, than I am modifying
the dll, and rebuilding. Then it is giving error:
"The file 'MyClass.dll' cannot be copied to the run
directory. The process cannot access the...
| |
by: pradeep_TP |
last post by:
Hi all,
I am using IIS 5.0 and this question is regarding working of ASP.net worker
process. I have only one web application right now on my web server. This
means that only one AppDomain will be created inside a single worker process.
NOw for example, due to some reason, my web application generated a stack
overflow error and crashed my appdoman (this happend in real case). In this
case as far as my knowledge goes, only appdomain...
|
by: John |
last post by:
I have a AppDomain ID, how do I get the instance of the AppDomain
Object?
Please advice.
Thanks in advance.
John
|
by: Max2006 |
last post by:
Hi,
What is the limit for memory that a .NET process or AppDomain can use?
Thank you,
Max
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |