关于多线程同步的一点总结
摘要:
这两天看了下 MoreWindows 《秒杀多线程》系列的博客,稍微总结一下,就当笔记了。http://blog.csdn.net/column/details/killthreadseries.html1. CreateThread()与_beginthreadex()的区别 _beginthreadex在创建线程前(即调用CreateThread()前),先申请了一个用于存放线程私有数据的_tidata 类型成员.2. Interlocked系列函数 * LONG __cdecl InterlockedIncrement(LONG volatile* Addend); 相当++Addend 阅读全文
posted @ 2013-08-02 01:10 DoubleZ 阅读(188) 评论(0) 推荐(0)
浙公网安备 33010602011771号