摘要: /** IoByEvnt.c** Sample code for Multithreading Applications in Win32* This is from Chapter 6, Listing 6-2** Demonstrates how to use event objects instead of* file handles to signal multiple outstandi... 阅读全文
posted @ 2010-07-08 16:26 南守拥 阅读(218) 评论(0) 推荐(0) 编辑
摘要: /** IoByFile.c** Sample code for Multithreading Applications in Win32* This is from Chapter 6, Listing 6-1** Demonstrates how a file handle becomes signaled* when an overlapped operation on the handle... 阅读全文
posted @ 2010-07-08 16:11 南守拥 阅读(359) 评论(0) 推荐(0) 编辑
摘要: Critical Section临界区用来实现 排他性占有 ,适用范围是单一进程的各线程之间,这旨:一个局部性对象,不是一个核心对象快速而有效不能够同时有一个以上的Critical Section 被等无法侦测是否已经某个线程放弃Mutex是一个核心对象,可以在不同的线程之间实现 排他性占有 ,甚至那些线程分属于不同进程,它是:一个核心对象如果拥有Mutex的那个线程结束,刚会产生一个 Aband... 阅读全文
posted @ 2010-07-08 15:19 南守拥 阅读(212) 评论(0) 推荐(0) 编辑
摘要: /** TaskQueM.c** Sample code for "Multithreading Applications in Win32"* This is from Chapter 3, Listing 3-3** Call ThreadFunc NUM_TASKS times, using* no more than THREAD_POOL_SIZE threads.* This vers... 阅读全文
posted @ 2010-07-08 14:23 南守拥 阅读(345) 评论(0) 推荐(0) 编辑
摘要: /** TaskQueS.c** Sample code for "Multithreading Applications in Win32"* This is from Chapter 3, Listing 3-2** Call ThreadFunc NUM_TASKS times, using* no more than THREAD_POOL_SIZE threads.* This vers... 阅读全文
posted @ 2010-07-08 13:47 南守拥 阅读(180) 评论(0) 推荐(0) 编辑
摘要: /** Busy2.c** Sample code for Multithreading Applications in Win32* This sample is mentioned in the text but there is* no associated listing in the book.** Run a busy loop and a worker thread at* the ... 阅读全文
posted @ 2010-07-08 11:48 南守拥 阅读(194) 评论(0) 推荐(0) 编辑
摘要: backprnt.cCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--/**BackPrnt.c**Samplecodefor"MultithreadingApplicationsinWin32"*ThisisfromChapter2,Listing2-... 阅读全文
posted @ 2010-07-08 11:27 南守拥 阅读(266) 评论(0) 推荐(0) 编辑