TD3 II.3+4 stress test our implementation
This commit is contained in:
parent
dcb11cf311
commit
4a67b57492
12 changed files with 95 additions and 13 deletions
21
code/test/userpages0_stress.c
Normal file
21
code/test/userpages0_stress.c
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue