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
18
code/test/forkexec_stress.c
Normal file
18
code/test/forkexec_stress.c
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "syscall.h"
|
||||
|
||||
const int process = 12;
|
||||
|
||||
main()
|
||||
{
|
||||
int i;
|
||||
for (i=0;i<process;i++){
|
||||
int c = i % 2;
|
||||
if ( c==0)
|
||||
ForkExec("../test/userpages0_stress");
|
||||
else
|
||||
ForkExec("../test/userpages1_stress");
|
||||
}
|
||||
ThreadExit();
|
||||
// while(1);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue