1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00
libhermit/usr/tests/endless.c

19 lines
242 B
C
Raw Permalink Normal View History

#include <time.h>
#include <stdio.h>
#include <hermit/syscall.h>
int main(int argc, char **argv) {
int cnt = 0;
#pragma omp parallel
while(1) {
#pragma omp critical
{
printf("Counter %d\n", ++cnt);
}
sys_msleep(500);
}
return 0;
}