Select Git revision
sams_hub.py
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
test_prog.c 413 B
#include <stdio.h>
#include <unistd.h>
int main(void)
{
// 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);
}
return 0;
}