Hello,
I want to create a very simple program to test threading. Example
int main () {
char option = 'a';
int run = 1;
while ( option != 'x' ) {
option = getch ();
/* some code that changes run */
/* thread ? */
}
}
Now I wanted a thread to run every X seconds, displaying some message (like the value of the run variable).
How can this be accomplished?
Thanks for your help.