The information in this article applies to:
SUMMARYIf you use temporary files, you can significantly increase the performance of your application. MORE INFORMATION
By using CreateFile() with the FILE_ATTRIBUTE_TEMPORARY flag, you let the
system know that the file is likely to be short lived. The temporary file
is created as a normal file. The system needs to do a minimal amount of
lazy writes to the file system to keep the disk structures (directories and
so forth) consistent. This gives the appearance that the file has been
written to the disk. However, unless the Memory Manager detects an
inadequate supply of free pages and starts writing modified pages to the
disk, the Cache Manager's Lazy Writer may never write the data pages of
this file to the disk. If the system has enough memory, the pages may
remain in memory for any arbitrary amount of time. Because temporary files
are generally short lived, there is a good chance the system will never
write the pages to the disk.
Additional query words:
Keywords : kbAPI kbFileIO kbKernBase kbWinOS2000 kbDSupport kbGrpKernBase |
Last Reviewed: December 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |