In Unix systems, it is possible to dynamically monitor the system by reading data from /proc. I am hoping to implement this kind of monitoring in my application, by dynamically saving “current status” into a file. However, I do not want IO delay my program, so it would be best to make the file virtual, i.e. not stored into disk but actually in memory. Is there a way of doint that? Thanks for the hint!
In Unix systems, it is possible to dynamically monitor the system by reading data
Share
Why not used shared memory and semaphores. Do a ‘man shmget’ as a starting point.