阅读背景:

I have a c++ program running on linux, is it possible to have it periodically store state snapshots in shared memory for post-crash recovery?

来源:互联网 

I'm not sure how to go about it as I've seen examples of shared memory used for interprocess communication. I was wondering if I could leverage it from within a server to take, say, periodic snapshots of certain objects and dump them in some format in shared memory which..if my program crashes..could be retrieved on restart of the program for partial recovery. Is this feasible? If so, what can I take a look at to get started?I'm not sure how to go about it as I've seen ex




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: