资 源 简 介
线程同步是一个非常大的话题,包括方方面面的内容。从大的方面讲,线程的同步可分用户模式的线程同步和内核对象的线程同步两大类。用
户模式中线程的同步方法主要有原子访问和临界区等方法。其特点是同步速度特别快,适合于对线程运行速度有严格要求的场合。
在MFC中封装了CCritionSection等对象可以对共享资源进行锁定
-thread synchronization is a very big issues, including all aspects of the content. From the side, thread synchronization can be divided into user mode and kernel threads simultaneously targeting two types of thread synchronization. User mode thread synchronization method main atomic visit and the critical areas were used. Its characteristics are synchronous speed faster suited to the thread running speed strict requirements of the occasion. Packaging in the MFC CCritionSection and other objects can share resources lock