Blue Theme Orange Theme Green Theme Red Theme
 
Home | Forums | Videos | Advertise | Certifications | Downloads | Blogs | Interviews | Jobs | Beginners | Training
 | Consulting  
Submit an Article Submit a Blog 
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
Team Foundation Server Hosting
Search :       Advanced Search »
Home » C#.NET » Chapter 10: Processes, AppDomains,Contexts, and Threads

Chapter 10: Processes, AppDomains,Contexts, and Threads

In this Chapter you drill deeper into the constitution of a .NET executable host and come to understand the relationship between Win32 processes, application domains, contexts, and threads.

Technologies: C#.NET
Author Name: Andrew Troelsen
Total downloads : 0
Total page views :  25493
Rating :
 0/5
This article has been rated :  0 times
  Add to Technorati Add to Technorati    Digg This Digg This    Add to del.icio.us Add to del.icio.us
    Rate this article Read/Post comments Support Us   Printable Version 

Chapter Contents
1. Page I: Introduction
2. Page II: Reviewing Processes and Threads
3. Page III: Reviewing Processes and Threads (Cont...)
4. Page IV: Reviewing Processes and Threads(Cont...)
5. Page V: Fun with AppDomains
6. Page VI: Understanding Context
7. Page VII: Understanding Context(Cont...)
8. Page VIII: Multithreaded Programming via Delegates
9. Page IX: Gathering Basic Thread Statistics
10. Page X: The VS .NET Threads Window
11. Page XI: Concurrency Revisited
12. Page XII: Programming with Timer Callbacks
13. Page XIII: Summary

Team Foundation Server Hosting
Become a Sponsor
 Tag Cloud
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 

IN THE PREVIOUS CHAPTER, you examined the steps taken by the CLR to resolve the location of an externally referenced assembly. Here, you drill deeper into the constitution of a .NET executable host and come to understand the relationship between Win32 processes, application domains, contexts, and threads. In a nutshell, application domains (or simply, AppDomains) are logical subdivisions within a given process, which host a set of related .NET assemblies. As you will see, an application domain is further subdivided into contextual boundaries, which are used to group together likeminded .NET objects. Using the notion of context, the CLR is able to ensure that objects with special needs are handled appropriately.
 
Once you have come to understand the relationship between processes, application domains, and contexts, the remainder of this chapter examines how the .NET platform allows you to manually spawn multiple threads of execution for use by your program within its application domain. Using the types within the System.Threading namespace, the task of creating additional threads of execution has become extremely simple (if not downright trivial). Of course, the complexity of multithreaded development is not in the creation of threads, but in ensuring that your code base is well equipped to handle concurrent access to shared resources. Given this, the chapter closes by examining various synchronization primitives that the .NET Framework provides (which you will see is somewhat richer than raw Win32 threading primitives).

Total Pages : 13 12345


        Rate this article Read/Post comments Support Us   Printable Version
 Book Detail
Book Title : C# and the .NET Platform, Second Edition
Author: Andrew Troelsen
Publisher: Apress
Price: 59.99 US$
EBook Price: 41.99 US$
Publisher Home Page: http://www.apress.com
Book Url: http://www.c-sharpcorner.com/Ebooks/Detail.aspx?EbookID=34
 Post a new question or comment about this article
Subject:
Comment:
 [Top] Rate this article:-
Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
Latest Comments:
Subject Posted By Posted On
Support Us
Tell your friends about us
Is this article is a Bad Submission report us here
Submit articles, tutorials, and tips
Help by answering questions on our discussion forums
Help us correct errors and broken links
Looking for a job? Post your resume here
Looking for developers? Post your job here


 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.