Laboratory work #5. Queues with priority