> (b) Monitor /sys using inotify in an extra thread/process. Oh - or loop { load-/sys ; sleep 1 }. That's what you meant.