Home
Browse all 647 examples
Download all 647 examples
Download sample chapters
Reviews
Errata
Acknowledgments
Links on .NET
Paradoxal Press
Buy directly from Paradoxal Press at $33.99 (Save 43%)
Category: Programming
Level: Beginner to seasoned
900 pages
ISBN-10 097661322-0
ISBN-13 978-097661322-0
$59.99 USA
$79.99 CANADA
|
Chapter 5:
Processes, threads and synchronization
Chapter 4< > Chapter 6
Listings: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
Table of content:
Introduction
Processes Introduction The System.Diagnostics.Process class Creating and destroying a child process Avoid running several simultaneous instances of the same application on a single machine Terminating the current process
Threads Introduction Managed threads vs. Windows threads Preemptive multitasking Priority of processes and threads The System.Threading.Thread class Creating and joining a thread Suspending a thread Terminating a thread Foreground and background threads Managed thread state diagram
Introduction to resource access synchronization Race conditions Deadlocks
Synchronization with volatile fields and the Interlocked class
Volatile fields
The System.Threading.Interlocked XE "System.Threading.Interlocked" class Other facilities provided by the Interlocked class
Synchronization with the System.Threading.Monitor class and the lock C# keyword The Enter() and Exit() methods
The lock C# keyword
The SyncRoot pattern Thread-safe classes The Monitor.TryEnter() method The Wait(), Pulse() and PulseAll() methods of the Monitor class
Synchronizing with win32 objects: mutex, events and semaphores Sharing win32 synchronization objects Mutex Events Semaphores
Synchronizing using the System.Threading.ReaderWriterLock class
Synchronizing using the System.Runtime.Remoting.Contexts.SynchronizationAttribute attribute Introduction to synchronization domains The System.Runtime.Remoting.Contexts.Synchronization and synchronization domains Reentrancy and synchronization domains Another attribute named Synchronization
The CLR's threadpool Introduction Using the thread pool
Timers The System.Timers.Timer class The System.Threading.Timer class The System.Windows.Forms.Timer class
Calling a method asynchronously Asynchronous delegates Callback method Passing a state to the callback method One-Way calls
Threads-resources affinities The System.ThreadStatic attribute Thread local storage (TLS) The System.ComponentModel.ISynchronizeInvoke interface
Introduction to execution context
Index
Copyright Patrick Smacchia 2006 2007
|