OPERATING SYSTEMS FOR COMPUTERS
COMPUTER OPERATING SYSTEMS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
tasks
|
|
buffers
|
|
flags
|
|
None of the above
|
Detailed explanation-1: -The CPU works by following a process known as ‘fetch, decode and execute’. The CPU fetches an instruction from memory, decodes this instruction and then executes it. The CPU carries out this cycle continuously, millions of times per second.
Detailed explanation-2: -Generally, an interrupt will affect the execution of the fetch-decode-execute cycle of a running program as follows: The processor receives the interrupt. The processor completes the fetch-decode-execute cycle of the instruction that it was running when it received the interrupt.
Detailed explanation-3: -At the start of the FDE cycle, the interrupt register is checked and the CPU sees that an error has occurred. It isn’t currently servicing any other interrupt and no other higher priority interrupt has occurred so it decides to service this routine. It pushes the contents of the CPU’s registers onto the stack.
Detailed explanation-4: -During the fetch execute cycle, the computer retrieves a program instruction from its memory. It then establishes and carries out the actions that are required for that instruction. The cycle of fetching, decoding, and executing an instruction is continually repeated by the CPU whilst the computer is turned on.