The program running on processor 2 is trying to perform an illegal operation cod
ID: 2246649 • Letter: T
Question
The program running on processor 2 is trying to perform an illegal operation code 26. The following four requests could come in to an operating system as it is running on a computer system: The clock in the computer has just "ticked," and we need to update a seconds counter The program running on processor 2 is trying to perform an illegal operation code. o Someone pulled the plug on the power supply, and the system will run out of power in 50 msec. The disk has just read the character that passed under the read/write head, and it wants to store it in memory before the next one arrives. . In what order should the operating system handle these requests?Explanation / Answer
I think the order should be 3 4 1 2.
Explanation: Usually the Operating system serves requests on First Come First Serve basis. Since the computer is going to be turned off within 50msec, the Operating System has to handle this request first and after this request since it is going to get turned off now it will try to serve the requests based on priority. Hence, request 4 will be served next and out of the seconds timer and the illegal instruction, seconds timer is the important one because the computer has to maintain the right time and because the computer is running out of power, even if you try to serve the process that generates an illegal instruction, that will be of no use as it will not complete it's execution. Hence, 1st request has to be handled before the 2nd request
Note: Intervention of BIOS is ignored. In general, it depends on the Operating System manufacturer how would he deal with different kinds of requests and dealing with these kinds of requests may vary from one OS to another
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.