How to implement thread which periodically checks something using minimal resources? How to implement thread which periodically checks something using minimal resources? multithreading multithreading