#include #include "newcalls.h" int main() { int thread=_clone(); // we want two threads if(thread!=0) // thread 1 { while(1) printf("a\n"); } else // thread2 { while(1) printf("b\n"); } }