AppDomain

Now you have a brief understanding about what a Thread is. At this point, you will learn about the environment in which every Thread runs, and that is the AppDomain. In the unmanaged world, a system had multiple processes, and each process had one or more threads. In the managed world, the system still has many processes, but it now has an additional boundary called the AppDomain. An AppDomain has been described as a lightweight process. Although this is mostly correct conceptually in that AppDomains provide isolation like a process for security, faults, and errors, when it comes to Threads, the AppDomain no longer seems like a process. Threads can easily weave in and out of an AppDomain, which is very much unlike a process.

An AppDomain ...

Get .NET Common Language Runtime Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.