c# - Executing services on multiple machines at same time -


i creating project remote monitoring application, consist of service hosted on individual machines. job of service collecct information regarding cpu usage, memory usage, etc. using wmi. service executes scan every 15 seconds using threading. want services on each machine executed @ same time. eg. 8.15, 8.30, 8.45. have written simple logix checks current second count , makes thread sleep time system reaches time falls either @ x.15, x.30, x.45 , etc. implementing not assure value collected service via wmi same process @ same time. eg. cpu usage machine 1 , cpu usage machine 2 should collected @ same time can compared @ run time. same goes other processes , metric values well.

any appreciated.

what's tolerance on "exactly same time?" within second? 10 milliseconds?

if systems on same lan , have small network delays use zeromq setup tcp/ip publish-subscribe system fire pulse every 15 seconds causes systems take snapshot.

if systems dispersed can use query ntp server: how query ntp server using c#?


Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -