sdk_winbase_io_asyncio

所属分类:Windows编程
开发工具:Visual C++
文件大小:18KB
下载次数:164
上传日期:2005-09-26 17:22:42
上 传 者hl2731
说明:  The AsyncIO sample (also called the "PDC" sample) is a character-mode program for searching the files in a directory tree for a match against a pattern. It uses multiple threads, with each thread processing one file at a time, accumulating its matches. When each thread finishes searching a file, the thread sends the matches contiguously to a standard output.

文件列表:
sdk_winbase_io_asyncio\MAKEFILE (341, 1997-10-14)
sdk_winbase_io_asyncio\PDC.C (64223, 1997-10-05)
sdk_winbase_io_asyncio\pdc.dsp (2579, 1998-03-30)
sdk_winbase_io_asyncio\PDC.H (7406, 1997-10-05)
sdk_winbase_io_asyncio (0, 2005-09-26)

Pattern Matching Search SUMMARY ======= The PDC sample is a character mode program for searching the files in a directory tree for a match against a pattern. It uses multiple threads, with each thread processing a file at a time, accumulating its matches and outputting them to standard output contiguously when it is done searching a file. MORE INFORMATION ================ This program demonstrates how to use many of the advanced operating system features provided by the Win32 API. The features that this program demonstrates are: - Creating multiple threads, using synchronization objects - Thread termination - Virtual memory commitment versus reservation - Structured exception handling, using an exception filter procedure - Enumeration of directory entries - File mapping - Asynchronous file I/O using a completion routine - Synchronous file I/O The command-line syntax is: PDC [-h] [-v] [-y] [-a | -s | -m] [-t n] SearchString [DirectoryPath] where: h - Prints this message. v - Generates verbose output. y - Ignores case when doing comparisons. a - Specifies that the program should use asynchronous file I/O to read the files being searched. s - Specifies that the program should use synchronous file I/O to read the files being searched. m - Specifies that the program should use mapped file I/O to read the files being searched. t - Specifies the number of threads to use when doing the search. Default is 4 * the number of processors. SearchString - Specifies the text to search for. Enclose in quotes if it contains spaces or punctuation. DirectoryPath - Specifies the root of the tree to begin the search at. Defaults to the current directory.

近期下载者

相关文件


收藏者