Skip to content
Snippets Groups Projects
Commit 32e58545 authored by fu5520tp's avatar fu5520tp
Browse files

cleanup test programms

parent 34782b42
No related branches found
No related tags found
No related merge requests found
pb_submitter
test_prog
task_long
sysc_long
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
400800
File deleted
......@@ -3,18 +3,25 @@
int main(void)
{
int i;
int j;
// Make sure program is not finished before pb scheduler takes control
sleep(1);
int b = 0;
for (;b < 100; b++) {
int a = 0;
int c = 0;
for (;a < 100000; a++){c = c + a;}
// check if program runs
printf("loop run: %d, c = %d \n", b, c);
// syscall to switch tasks
usleep(10000);
// this outer for loop is around 8 instructions per iteration
for (i = 0; i < 100; i++) {
// this for loop results in 4 cpu instructions per iteration
// nop, add, compare, jmp
for (j = 0; j < 100000; j++){
__asm__ volatile("nop");
}
// check if program runs && syscall to switch tasks
printf("run #%d completed\n", i);
usleep(10000);
}
printf("main end\n");
return 0;
}
File deleted
......@@ -3,18 +3,25 @@
int main(void)
{
int i;
int j;
// Make sure program is not finished before pb scheduler takes control
sleep(1);
int b = 0;
for (;b < 100; b++) {
int a = 0;
int c = 0;
for (;a < 10000000; a++){c = c + a;}
// check if program runs
printf("loop run: %d, c = %d \n", b, c);
// syscall to switch tasks
usleep(1);
// this outer for loop is around 8 instructions per iteration
for (i = 0; i < 100; i++) {
// this for loop results in 4 cpu instructions per iteration
// nop, add, compare, jmp
for (j = 0; j < 10000000; j++){
__asm__ volatile("nop");
}
// check if program runs && syscall to switch tasks
printf("run #%d completed\n", i);
usleep(1);
}
printf("main end\n");
return 0;
}
......@@ -3,18 +3,25 @@
int main(void)
{
int i;
int j;
// Make sure program is not finished before pb scheduler takes control
sleep(1);
int b = 0;
for (;b < 100; b++) {
int a = 0;
int c = 0;
for (;a < 100000; a++){c = c + a;}
// check if program runs
printf("loop run: %d, c = %d \n", b, c);
// syscall to switch tasks
usleep(1);
// this outer for loop is around 8 instructions per iteration
for (i = 0; i < 100; i++) {
// this for loop results in 4 cpu instructions per iteration
// nop, add, compare, jmp
for (j = 0; j < 100000; j++){
__asm__ volatile("nop");
}
// check if program runs && syscall to switch tasks
printf("run #%d completed\n", i);
usleep(1);
}
printf("main end\n");
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment