#include "stdafx.h" #include "conio.h" #include "process.h" #include "windows.h" char fdt[]="abcd", gdt[]="1234", mdt[]="WXYZ"; void f(void *a){ for(int i=0;fdt[i]!=0;i++)putch(fdt[i]); } void g(void *a){ for(int i=0;gdt[i]!=0;i++)putch(gdt[i]); } int _tmain(int argc, _TCHAR* argv[]) { while(getch()!=EOF){ _beginthread(f, 0, NULL); _beginthread(g, 0, NULL); for(int i=0;mdt[i]!=0;i++)putch(mdt[i]); Sleep(200); printf("\n*** Process end\n"); } return 0; }