P
Paul Fi
I have some confusions about the two, is it possible to create threads
inside a particular domain and have other threads created in another
domain or do we create threads that will manipulate app domains?
i have read this in the .NET framework docs about domains and threads
and i need some clarifications on this:
There is not a one-to-one correlation between application domains and
threads. Several threads can be executing in a single application domain
at any given time and a particular thread is not confined to a single
application domain. That is, threads are free to cross application
domain boundaries; a new thread is not created for each application
domain.
At any given time, every thread is executing in one application domain.
The run time keeps track of which threads are running in which
application domains. You can locate the domain in which a thread is
executing at any time by calling the Thread.GetDomain method.
inside a particular domain and have other threads created in another
domain or do we create threads that will manipulate app domains?
i have read this in the .NET framework docs about domains and threads
and i need some clarifications on this:
There is not a one-to-one correlation between application domains and
threads. Several threads can be executing in a single application domain
at any given time and a particular thread is not confined to a single
application domain. That is, threads are free to cross application
domain boundaries; a new thread is not created for each application
domain.
At any given time, every thread is executing in one application domain.
The run time keeps track of which threads are running in which
application domains. You can locate the domain in which a thread is
executing at any time by calling the Thread.GetDomain method.