ex15.pp 382 B

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