Win32Multithread

所属分类:系统编程
开发工具:Visual C++
文件大小:2526KB
下载次数:1
上传日期:2009-08-19 23:02:13
上 传 者joe5yellow
说明:  Thread Primier,A Guide to Multithreaded Programming,Bil Lewis Daniel J. Berg,<SUPPLYMENT FILES>
(Thread Primier, A Guide to Multithreaded Programming,Bil Lewis Daniel J. Berg,<SUPPLYMENT FILES>)

文件列表:
Chapter10 (0, 1999-10-27)
Chapter10\ThreadPools (0, 1999-10-27)
Chapter10\ThreadPools\CThreadPool.h (839, 1997-09-17)
Chapter10\ThreadPools\FixedThreadPool (0, 1999-10-27)
Chapter10\ThreadPools\FixedThreadPool\CFixedThreadPool.cpp (3795, 1997-09-17)
Chapter10\ThreadPools\FixedThreadPool\CFixedThreadPool.h (3224, 1997-09-17)
Chapter10\ThreadPools\FixedThreadPool\Debug (0, 1999-10-27)
Chapter10\ThreadPools\FixedThreadPool\Debug\FTPTest.exe (29696, 1997-09-17)
Chapter10\ThreadPools\FixedThreadPool\FTPTest.cpp (2149, 1997-09-17)
Chapter10\ThreadPools\FixedThreadPool\FTPTest.mak (7952, 1997-09-17)
Chapter10\ThreadPools\FixedThreadPool\Release (0, 1999-10-27)
Chapter10\ThreadPools\FixedThreadPool\Release\FTPTest.exe (11776, 1997-09-17)
Chapter10\ThreadPools\GrowableThreadPool (0, 1999-10-27)
Chapter10\ThreadPools\GrowableThreadPool\CGrowableThreadPool.cpp (15842, 1997-09-17)
Chapter10\ThreadPools\GrowableThreadPool\CGrowableThreadPool.h (5884, 1997-09-17)
Chapter10\ThreadPools\GrowableThreadPool\Debug (0, 1999-10-27)
Chapter10\ThreadPools\GrowableThreadPool\Debug\GTPTest.exe (39936, 1997-09-17)
Chapter10\ThreadPools\GrowableThreadPool\GTPTest.cpp (2291, 1997-09-17)
Chapter10\ThreadPools\GrowableThreadPool\GTPTest.mak (9499, 1997-09-17)
Chapter10\ThreadPools\GrowableThreadPool\Release (0, 1999-10-27)
Chapter10\ThreadPools\GrowableThreadPool\Release\GTPTest.exe (17920, 1997-09-17)
Chapter11 (0, 1999-10-27)
Chapter11\CppObjects (0, 1999-10-27)
Chapter11\CppObjects\sampapp (0, 1999-10-27)
Chapter11\CppObjects\sampapp\Debug (0, 1999-10-27)
Chapter11\CppObjects\sampapp\Debug\sampapp.exe (76800, 1997-09-17)
Chapter11\CppObjects\sampapp\Debug\sampdll.dll (131584, 1997-09-17)
Chapter11\CppObjects\sampapp\Release (0, 1999-10-27)
Chapter11\CppObjects\sampapp\Release\sampapp.exe (15360, 1997-09-17)
Chapter11\CppObjects\sampapp\Release\sampdll.dll (22528, 1997-09-17)
Chapter11\CppObjects\sampapp\sampapp.cpp (673, 1997-09-17)
Chapter11\CppObjects\sampapp\sampapp.mak (6233, 1997-09-17)
Chapter11\CppObjects\sampdll (0, 1999-10-27)
Chapter11\CppObjects\sampdll\Debug (0, 1999-10-27)
Chapter11\CppObjects\sampdll\Debug\sampdll.dll (131584, 1997-09-17)
Chapter11\CppObjects\sampdll\Debug\sampdll.lib (2008, 1997-09-17)
Chapter11\CppObjects\sampdll\Release (0, 1999-10-27)
Chapter11\CppObjects\sampdll\Release\sampdll.dll (22528, 1997-09-17)
Chapter11\CppObjects\sampdll\Release\sampdll.lib (2008, 1997-09-17)
Chapter11\CppObjects\sampdll\sampdll.cpp (1765, 1997-09-17)
... ...

This CD-ROM contains all of the sample code from Win32 Multithreaded Programming, along with the Mcl and Mcl4Mfc class libraries. In particular, the CD-ROM contains the following: 1.) The Mcl and Mcl4Mfc class libraries. These are stored in the \Mcl and \Mcl4Mfc directories, respectively. We have included complete source code for both the implementation files (found in the Src subdirectory) and the header files (found in the Include subdirectory), along with debug and release versions of the compiled binaries (.LIB files), which are found in the Lib subdirectory. 2.) Help files for the Mcl and Mcl4Mfc class libraries. We have included both the standard WinHelp files as well as the new HTML Help files for both Mcl and Mcl4Mfc. These are found in the \Help directory. Microsoft's HTML Help is a relatively new and still evolving specification. If HTML Help is not available on your system, or if your version of HTML Help is having problems rendering the help file correctly, check Microsoft's web site (http://www.microsoft.com/workshop/author/htmlhelp/) to make sure that you have the latest version. 3.) Sample programs. All sample programs presented in the book are included on the CD-ROM and are found in directories that correspond to the chapters in which they appear. Along with source code and a make file, there are also debug and release versions of the executable program, so that you do not have to compile the program when you want to try it to see how it works. All executables have been compiled using Microsoft Visual C++ Version 4.2. 4.) Microsoft Visual C++ 4.2 Runtimes. In order to run the executable programs from the CD-ROM on your system, the run-time libraries from Microsoft Visual C++ 4.2 must also be present. If you're using a version of Visual C++ earlier than 4.2, however, they may not be present. In this event, we have included them in the \Runtimes directory. 5.) Differences between this code and the code in the book. Late in production, we discovered that some of the sample programs presented in the book didn't run under Windows NT 4.0. In two places, we closed the handle to a file mapping kernel object after calling MapViewOfFile. Under Windows 95, MapViewOfFile increments the reference count on the file mapping kernel object, allowing you to close the handle to the file mapping kernel object earlier. Separate processes calling MapViewOfFile on a file mapping objects with the same name have a synchronized view of the mapped memory. Under Windows NT 4.0, closing the handle after mapping the view in the first process results in the second process not sharing the memory with the first. If you are using the file mapping object in order to perform memory mapped file I/O, and not to share memory between applications, it is safe to call CloseHandle on the file mapping object anytime after calling MapViewOfFile. Fixes were made to our source code in two places where file mapping objects were being used to implement shared memory: the SharedStr sample program presented in chapter 5, and the CMclSharedMemory class presented in chapter 7. The problem in the CMclSharedMemory class affected the CMclMailbox class, which uses CMclSharedMemory. The programs that use one or both of these classes, and that fail under NT 4.0, are the CMailboxDemo and CShareStr programs presented in Chapter 7, and the PrintRequest and PrintServer programs presented in Chapter 8. The source code and all affected sample programs on the CD-ROM reflect these changes. Note that there is no installation routine for the CD-ROM's libraries, help files, and example programs. You can either access them directly on the CD-ROM, or copy them to a directory of your choice.

近期下载者

相关文件


收藏者