A compensation procedure for multiprogramming queues