FUNDAMENTALS OF COMPUTER

OPERATING SYSTEMS FOR COMPUTERS

COMPUTER OPERATING SYSTEMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
At the end of the fetch, decode, execute cycle, the CPU will check if an interrupt has occurred by looking at the interrupt register to see if any ____ have been set
A
tasks
B
buffers
C
flags
D
None of the above
Explanation: 

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.

There is 1 question to complete.