NachOS/code/test/userpages0_stress.c

21 lines
345 B
C

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