Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <sys/time.h>
  2. #include <sys/resource.h>
  3. #include <unistd.h>
  4. #include <stdio.h>
  5.  
  6. int
  7. main (int argc, char ** argv)
  8. {
  9. int prio;
  10. while(1)
  11. {
  12. prio = getpriority (PRIO_PROCESS, 0);
  13. printf("priority : %d\n", prio);
  14. sleep(1);
  15. }
  16. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement