Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sys/time.h>
- #include <sys/resource.h>
- #include <unistd.h>
- #include <stdio.h>
- int
- main (int argc, char ** argv)
- {
- int prio;
- while(1)
- {
- prio = getpriority (PRIO_PROCESS, 0);
- printf("priority : %d\n", prio);
- sleep(1);
- }
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement