【c – FlushViewOfFile(Windows)和msync(Linux)的时间消耗】教程文章相关的互联网学习教程文章

c – FlushViewOfFile(Windows)和msync(Linux)的时间消耗

早上好, 我们对FlushViewOfFile和msync的时间消耗感兴趣.引用UnmapViewOfFile documentation:To minimize the risk of data loss in the event of a power failure or a system crash, applications should explicitly flush modified pages using the FlushViewOfFile function.FlushViewOfFile()和msync()是否是昂贵的操作?我们要问的原因是,在我们的应用程序中,我们可能不需要在系统崩溃时将数据丢失的风险降至最低. 谢谢,解决...