4.1 Types of software and interrupts Flashcards
What is software?
a series of instructions written in a programming language that performs a function
What are two types of system software?
operating system (OS) and utility programs
What is Application software?
Application software provides the services that
the user requires
What are 4 examples of generic names of application software?
Word Processor
Spreadsheet
Database
Web Browser
Name all the roles of an Operating System
– managing files
– handling interrupts
– providing an interface
– managing peripherals and drivers
– managing memory
– managing multitasking
– providing a platform for running applications
– providing system security
– managing user account
Describe how hardware, firmware and an operating system are required to run applications software.
The application software cannot run on a computer without an operating system. The operating system cannot run unless there instructions given to it, these are provided by the firmware. The firmware cannot run unless it is told to run, this is done using the bootstrap program, which is loaded when the computer first turns on and is run on the hardware.
What is an interrupt?
a signal sent to a processor to tell it that its attention is needed
What actions would cause interrupts to appear in the Hardware?
data input on a keyboard
error from hardware e.g. printer run out of paper
new hard drive device connected
What actions would cause interrupts to appear in the software?
Division by 0
two processes attempting to access the same memory location
output required
What is the interrupt handler?
a program that organizes interrupts into a order based on priorities
What is the Interrupt service routine?
a program that receives an interrupt and performs a required action
How is an interrupt handled using an interrupt service
routine?
- When the processor finishes its current fetch-decode-execute cycle (or before the starting the next FDE cycle), it checks the interrupt queue.
- It checks whether there is an interrupt with a higher priority than the current task it is processing.
- If it is, it:
Stores the current process and fetches the interrupt. Checks the source of the interrupt. Calls the relevant interrupt service routine (ISR). This is a sequence of instructions that handle the interrupt. When finished the stored process is returned to memory or another higher-priority interrupt is fetched.
- If it isn’t, it runs another FDE cycle.