search for: dummy_work

Displaying 1 result from an estimated 1 matches for "dummy_work".

Did you mean: dummy_worker
2018 Jan 24
0
libasan bug: pthread_create never returns
...have to run on the same CPU with different real-time priorities (including zero for non-real-time policies). */ #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <sched.h> #include <errno.h> #include <unistd.h> void * dummy_worker(void *ptr) { printf("Hello from worker\n"); return NULL; } int main(void) { struct sched_param schedule; schedule.sched_priority = 50; if (sched_setscheduler(getpid(), SCHED_RR, &schedule) == 1) { perror("sched_setscheduler"); exit(EXIT_FAILURE); } cpu_s...