
.Net Multithreading
A Complete Guide with Examples in C# and VB.NET
Résumé
If you need high performance, or a rich user experience, you should consider multithreading. With .NET you can develop stable and robust multithreaded applications with minimal effort. .NET Multithreading teaches the basics in an understandable and practical way. It then focuses on .NET's mechanisms for multithreading and shows how easy it can be to develop applications with them. The book covers several design approaches such as one-thread-one-class, the asynchronous design pattern, and using queues as buffers between threads. It explains best practices and how to avoid common multithreading pitfalls such as deadlock and race conditions.
This book is written for intermediate .NET developers who know C# or VB .NET, but are not assumed to have a background in multithreading. It is rich in examples that will help you understand the subject and produce multithreaded applications that have the power of C++ while keeping the ease and reliability of .NET.
What's Inside:
- Creating multithreaded System Services
- Designing for high performance
- Using Asynchronous Delegates
- How to control thread execution
- Handling and logging errors
- How to protect data from corruption
- How to coordinate threads
- How to use ThreadPools effectively
Contents
Process and Thread basics- 1.1. What is a process, why do they exist?
- 1.2. Multitasking
- 1.3. How Preemptive Multitasking is Accomplished
- 1.4. Summary
- 2.1. .NET Architecture Overview
- 2.2. Garbage Collection
- 2.3. Security
- 2.4. Summary
- 3.1. Application Domain
- 3.2. Threads
- 3.3. Summary
- 4.1. Creating a new thread
- 4.2. Starting a thread
- 4.3. Ending a thread
- 4.4. Determining a Thread's Status
- 4.5. Summary
- 5.1. Example: Web Site Monitoring
- 5.2. Naming Threads
- 5.3. Using Sleep and Interrupt
- 5.4. Using Background and Foreground Threads
- 5.5. Using Suspend and Resume
- 5.6. Exploring Thread States
- 5.7. Digging Deeper into Thread Control
- 5.8. Summary
- 6.1. Using Data to Communicate
- 6.2. When things go badly
- 6.3. Summary
- 7.1. Understanding Thread-Safety
- 7.2. Atomic operations
- 7.3. Lock and AsyncLock Statements
- 7.4. The Monitor Class
- 7.5. Digging Deeper into Concurrency Control
- 7.6. Summary
- 8.1. An Overview of the WaitHandle class
- 8.2. AutoResetEvent:
- 8.3. WaitHandle
- 8.4. ManualResetEvent
- 8.5. Mutex: WaitOne and ReleaseMutex
- 8.6. Summary
- 9.1. Reader Lock
- 9.2. Writer Lock
- 9.3. ReleaseLock and RestoreLock
- 9.4. Summary
- 10.1. ThreadPool Class and QueueUserWorkItem
- 10.2. RegisterWaitForSingleObject
- 10.3. Informational Methods and Properties
- 10.4. The UnsafeRegisterWaitForSingleObject and UnsafeQueueUserWorkItem Methods
- 10.5. What ThreadPools are used for in .NET
- 10.6. Summary
- 11.1. Using Thread Static Variables
- 11.2. Using Unnamed Data Slots
- 11.3. Using Named Data Slots
- 11.4. Freeing Named Data Slots
- 11.5. Summary
- 12.1. Delegates Revisited
- 12.2. The ThreadStart Delegate
- 12.3. Callbacks
- 12.4. Handling Thread Exceptions in Windows Forms
- 12.5. Asynchronous Delegates
- 12.6. Creating and Invoking Dynamic Delegates
- 12.7. Summary
- 13.1. Exceptions Revisited
- 13.2. Thread Related Exceptions
- 13.3. The AppDomain UnhandledException Event
- 13.4. Summary
- 14.1. Using Windows Forms Timers
- 14.2. System.Timers.Timer
- 14.3. System.Threading.Timer
- 14.4. Summary
- 15.1. Windows Forms Multithreaded related issues
- 15.2. Using the Graphics Object With Threads
- 15.3. Thread Related Application Events and Properties
- 15.4. Summary
- 16.1. What exactly is an apartment?
- 16.2. COM Interoperability
- 16.3. Summary
- 17.1. The Asynchronous Design Pattern
- 17.2. MessageQueue Example
- 17.3. One Class One Thread
- 17.4. Performance issues
- 17.5. Summary
L'auteur - Alan L. Dennis
Alan Dennis is a Microsoft-certified solution developer
who has developed numerous multithreaded applications using
C++, Java, and .NET. He lives in Grapevine, Texas.
Caractéristiques techniques
PAPIER | |
Éditeur(s) | Manning Publications |
Auteur(s) | Alan L. Dennis |
Parution | 20/12/2002 |
Nb. de pages | 356 |
Format | 18,5 x 23,5 |
Couverture | Broché |
Poids | 595g |
Intérieur | Noir et Blanc |
EAN13 | 9781930110540 |
Avantages Eyrolles.com
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse