Waking up once a second will improve your response time and cause negligible extra cpu usage.I see... I can get quicker resonse. This seems good compromize for me.
But I suspect that in your real code you are wanting to do more in the while than just sleep?Yes. What I do in real "while loop" is like this.
In reply to Re^2: ctrl + c on Win32 (signal handling)
by remiah
in thread ctrl + c on Win32 (signal handling)
by remiah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |