January 31, 2000 ---------------- - IN-CLASS QUESTIONS & ANSWERS: 1. Question: How can you tell which hold queue a job goes to? Answer: Hold Queues are based on Priority. Hold 1 is for priority 1 etc. 2. Scenario: Ready Queue is empty. Jobs in the long queue are running. A new job comes into Ready. What happen next? The new job will stop the currently running job immediately and gets a new timeslice. And all other jobs in the ready go back to long. 3. If an job is running between its timeslice when a new job comes in, what will happen? - If no job in the Ready Queue is long, the new job simply goes to the end of Ready Queue and won't distrub the currently running job. - If the running job is a long job, it gets distrubed and goes back to long. The new job gets a new timeslice. 4. Different types of Internal events: End of Timeslice, Completion; Different types of External events: Arrival, Display. 5. Threshold don't have to be a multiple of the timeslice. 6. A job is considered long if its acrrued time is greater than or equal to the long job threshold. 7. It's possible that the long job threshold equals to zero. In this case, when a new jobs comes in, it'll will disturb the currently running job and gets a timeslice to run. After that, it'll go to the end of the long queue.