K
KevinSimonson
In Java one can set up a timer, and using that timer arrange for
methods to be called at regular intervals, say every five seconds. I
understand I can do that in C++ with the <sleep()> function, but that
would tie up the CPU, wouldn't it? And keep other functions from
running while the <sleep()> function is executing? I want to be able
to schedule my method to run at regular intervals, but I also want it
so that other functions can run while an interval is waiting to
complete. Is that possible with C++? And if so, how does one do it?
Kevin S
methods to be called at regular intervals, say every five seconds. I
understand I can do that in C++ with the <sleep()> function, but that
would tie up the CPU, wouldn't it? And keep other functions from
running while the <sleep()> function is executing? I want to be able
to schedule my method to run at regular intervals, but I also want it
so that other functions can run while an interval is waiting to
complete. Is that possible with C++? And if so, how does one do it?
Kevin S