NachOS/code/test/userpages0.c

20 lines
331 B
C

#include "syscall.h"
void output(char* s) {
int nb = 10;
int i;
for(i=0;i<nb;i++)
PutString((char*)s);
ThreadExit();
}
int main () {
// Premier Thread
void* f = output;
ThreadCreate(f,"a");
ThreadCreate(f,"a");
PutString("\nthis is the end of our main() in test program\n");
ThreadExit();
}