diff --git a/code/test/threadcreate.c b/code/test/threadcreate.c index bae750f..23d896b 100644 --- a/code/test/threadcreate.c +++ b/code/test/threadcreate.c @@ -2,12 +2,18 @@ #include "syscall.h" void f(int c) { - PutString("Thead!"); + PutChar((char)c); + //GetChar(); + ThreadExit(); } int main(){ - //int i; - ThreadCreate(f, 66); + int i = 64; + for (i=64; i < 68; i++){ + ThreadCreate(f, i); + } PutString("end of main()\n"); + ThreadExit(); + //return 0; } #endif