#include "stdafx.h" #include "conio.h" #include "process.h" #include "windows.h" void f(void *a){ putchar((char)a); } int _tmain(int argc, _TCHAR* argv[]) { char fs='f', gs='g'; while(getch()!=EOF){ _beginthread(f, 0, (void *)(fs)); _beginthread(f, 0, (void *)(gs)); Sleep(200); printf("\n*** Process end\n"); } return 0; }