ex15.pp 360 B

1234567891011121314
  1. Program Example15;
  2. { Program to demonstrate the Nice and Get/SetPriority functions. }
  3. Uses linux;
  4. begin
  5. writeln ('Setting priority to 5');
  6. setpriority (prio_process,getpid,5);
  7. writeln ('New priority = ',getpriority (prio_process,getpid));
  8. writeln ('Doing nice 10');
  9. nice (10);
  10. writeln ('New Priority = ',getpriority (prio_process,getpid));
  11. end.