What is fadvise/madvise equivalent on windows?
问题 On UNIX, I can, for example, tell the OS that the mapping will be needed in the future with posix_fadvise(POSIX_FADV_WILLNEED) . It will then read-ahead the data if it feels so. How to tell the access intend to Windows ? 回答1: Actually, as Anders mostly suggested, there is no such method in the memory management functions available in Windows 7 and earlier . 2 different ways exists to do something similar : Read the data asynchronously with ReadFileEx. The data might then still be in the file