Optimization: call getpriority() instead of reading /proc