Chapter 4.1 (B) Interupts Flashcards Preview

Computer Science > Chapter 4.1 (B) Interupts > Flashcards

Flashcards in Chapter 4.1 (B) Interupts Deck (17)
Loading flashcards...
1
Q

What is multi-tasking

A

A function that allows a computer to process more than one task/process at a time

2
Q

What does the computer have to monitory in order to perform multi tasking

risk?

A

» the time that resources have been allocated to a process. There is a time limit

» Priority of a process (the risk here is that a low priority process could be starved of resources).

3
Q

What do multiple account allow a user to do

A

» customise their screen layout and other settings
» manage separate folders and files themselves

4
Q

What is a user-account

A

Allows an individual to use a computer; the user needs a user name and password to enter the his/her area

5
Q

What is booting up/bootstrap loader

A

a small program that is used to load part of the operating system into RAM

6
Q

What does the BIOS tell the computer and what does it do

A

Where the storage device that holds the operating system can be found

It then loads the part of the operating system that is needed and executes it.

7
Q

What is firmware

A

a program that provides low level control for devices.

8
Q

Where is the BOIS stored
what is it

A

EEPROM - a flash memory chip, which means its contents remain even when the computer is powered down. However, it also means the BIOS can be rewritten, updated or even deleted by a user.

9
Q

Where are the BIOS settings stored

full form
how is it powered
what does this mean
what happens once restarted

A

CMOS chip - Complementary Metal Oxide Semi-conductor)

CMOS is powered up at all times via a rechargeable battery on the motherboard.
Therefore, the BIOS settings would be reset if the battery was removed or disconnected for some reason.

Once the CMOS is re-started, it will access the same BIOS program from EEPROM, but the settings will now be the default factory settings.

10
Q

What is an interrupt

A

a signal sent from a device or software to a microprocessor requesting its attention

11
Q

Causes of an interrupt

A

» a timing signal

» an input/output process (for example, a disk drive or printer requiring more data)

» a hardware fault (for example, a paper jam in the printer)

» user interaction (cntrl + c in the middle of a program executing)

» software errors that cause a problem (trying to divide by 0)

12
Q

What happens after an interrupt is sent

how does the microprocessor decide what to do

A

microprocessor either carries on with what it was doing or stops to service the device or program that caused the interrupt.

Computer establishes a interrupt priority

13
Q

What is interrupt priority

A

Interrupts are given a priority so that the microprocessor knows which one needs to be serviced first and which interrupts are to be dealt with quickly

14
Q

What does it mean to service an interrupt

what happens if interrupt is not serviced

A

Action needs to be taken by the processor depending on what caused the interrupt.

Until interrupt is serviced it cannot be removed and allow the process to continue

15
Q

How does a microprocessor serivce an interrupt

A

The status of the current task being run first needs to be saved.

The contents of the Program Counter (PC) and other registers are saved.

ISR is executed by loading the start address into the Program Counter (PC).

Once the interrupt has been fully serviced, the status of the interrupted task is reinstated - (the contents of all the saved registers are then retrieved)

16
Q

what is ISR

A

interrupt service routine (ISR) – software that handles
interrupt requests and sends a request to the CPU for processing

17
Q

2 types of interrupts
given examples for both

A

Hardware - pressing a key on keyboard or moving mouse
Software - div by 0 and 2 two processes trying to access the same memory location