Given four requests that arrive at the operating system in what order would the operating system handle these requests? 1. The closk in the computer has "ticked", and a seconds counter needs to be updated. 2. The program running on the processor is trying to perform an illegal operation code. 3.Someone pulled the plug on the power supply, thus the system has 40msec until it runs out of power. 4. The disk has just read the character that passed under the read/write head and it wants to save the character in memory before the next one passes.
Is the right order: 1. Someone pulled the plug on the power supply, thus the system has 40msec until it runs out of power. 2. The program running on the processor is trying to perform an illegal operation code. These first two tasks are errors and/or important information. Thus,they always go first. 3. The clock on the computer has just "ticked", and a seconds counter needs to be updated 4. The disk has just read the character that passed under the read/write head, and it wants to store the character in memory before the next one passes. Following error messages and important information are other tasks. The order of these tasks depend on the amount of time needed to complete the task, with the tasks that require the least amount of time going first.The last two tasks were ordered in a way such that the first task after the error messages would take less time to complete than the second task after the error messages. Did I order the processes, or requests, correctly???? Thank you for your help. Stephen
