blocking/non-blocking timer in C -
this might repeated question, sorry bringing again. unable find solution :( . writing vm monitoring code in c in linux. want read , write count of vm's every 10 seconds. there c library provides feature(timer alone), blocking/non-blocking timer doesn't matter. !!
regards, sethu
sleep(10);
will make thread sleep 10 seconds in unix system. use in loop code monitoring, , go. if you're using windows host monitoring, sleep function accept in milliseconds.
also, multithreading/multiprocessing required, implementations vary based on os/platform.
Comments
Post a Comment