research on "SynchronizationContext ";
to use CSemaphore class, we need to include "<"afxmt.h">" header file.
- CMutex Class
- CEvent Class
- CCriticalSection Class
- CSemaphore Class
- SynchronizationContext Class
- The .NET Framework's New SynchronizationContext Class
- Beginners Guide to Threading in .NET: Part 5 of n
- Understanding SynchronizationContext (Part I)
- Understanding SynchronizationContext: Part II
- Understanding SynchronizationContext: Part III
- Understanding the SynchronizationContext in .NET with C#
- CRuntimeClass Structure
- Logging Using the Composite Pattern
- Synchronization in Multithreaded Applications with MFC
Represents a "mutex" — a synchronization object that allows one thread mutually exclusive access to a resource.
Represents an event, which is a synchronization object that enables one thread to notify another that an event has occurred.
Events are useful when a thread must know when to perform its task. For example, a thread that copies data to a data archive must be notified when new data is available. By using a CEvent object to notify the copy thread when new data is available, the thread can perform its task as soon as possible.
CEvent objects have two types: manual and automatic.
Represents a "critical section" — a synchronization object that allows one thread at a time to access a resource or section of code.
the example is clear. it is good for my file list item retrieval and store it into memory for quick drawing.
An object of class CSemaphore represents a "semaphore" — a synchronization object that allows a limited number of threads in one or more processes to access a Maintains a count of the number of threads currently accessing a specified resource.
Each class derived from CObject is associated with a CRuntimeClass structure that you can use to obtain information about an object or its base class at run time.
the header file is "afx.h"
Allow flexiable logging using the Composite design pattern.
Introduces synchronization concepts and practices in multithreaded applications
No comments:
Post a Comment