Skip to content

mdeschu/mikes-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

mikes-playground

Dev Ops and other VM configuration Misc Related Items #include <stdlib.h> #include <stdio.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <errno.h> #include <sched.h>

int main(int ac, char av[]) { /
* set up scheduling * *
/

struct sched_param sched;

sched.sched_priority = 8;        /* set priority */

if ( sched_setscheduler(getpid(), SCHED_FIFO, &sched) < 0 )
    fprintf(stderr, "SETSCHEDULER failed - err = %s\n", strerror(errno));
else
    printf("Priority set to \"%d\"\n", sched.sched_priority);

exit(0);

}

About

Dev Ops and other VM configuration Misc Related Items

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published