#include <stdio.h>
int main(int argc, char** argv)
{
// Start Thread
char buf[256];
while (gets(buf))
if (*buf == 'q')
break;
}
// Stop Thread
return 0;