does the system guarantee this? (转载)# Programming - 葵花宝典
c*e
1 楼
【 以下文字转载自 Linux 讨论区 】
发信人: crystalike (New Start), 信区: Linux
标 题: does the system guarantee this?
发信站: BBS 未名空间站 (Wed Oct 24 20:50:25 2007)
in c++ using std::endl or iostream.flush will flush the buffer in the user
space. does this also flush the kernel buffer?
we know that when exit () is called, buffers will be flushed but what about
the case when the process crashes upon a seg fault or memory shortage?
basically in my case I need to guarantee that when my programs dies for whatever reason, w
发信人: crystalike (New Start), 信区: Linux
标 题: does the system guarantee this?
发信站: BBS 未名空间站 (Wed Oct 24 20:50:25 2007)
in c++ using std::endl or iostream.flush will flush the buffer in the user
space. does this also flush the kernel buffer?
we know that when exit () is called, buffers will be flushed but what about
the case when the process crashes upon a seg fault or memory shortage?
basically in my case I need to guarantee that when my programs dies for whatever reason, w