TD3 II.3+4 stress test our implementation

This commit is contained in:
Yorick Barbanneau 2021-12-16 15:40:03 +01:00
parent dcb11cf311
commit 4a67b57492
12 changed files with 95 additions and 13 deletions

View file

@ -0,0 +1,21 @@
#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();
}