Systems software Flashcards
software and software development
Define what an operating system is
software that controls the computer, manages the computer’s hardware and from which other programs can be run
Outline the role of an operating system
- Manage the system hardware
- Manage the installation and running of programs
- Manage the security of the system
- Provide a user interface
Define user interface
This means that the computer and user interact.
- This could be the command line interface, where operating system commands are typed in
or a
- Graphical user interface, where programs run in Windows and the user interacts using a mouse and icons
Describe paging
This is when programs are divided physically into equal-sized blocks called pages
Describe segmentation
When programs are divided logically . They are split into blocks containing modules or routines
How does the OS manage memory? Why?
When a system runs low on physical memory (RAM), it uses virtual memory (an area of secondary storage).
Pages are swapped from main memory to virtual memory when not needed and then back to main memory when required. If this happens too often the computer slows down (disk thrashing).
- Because RAM is more expensive, the computer system will often have more secondary storage.
Define interrupt
A signal sent to a CPU to signify another process needs the processor’s time
Why do we need interrupts
The CPU needs to know when a device needs its attention.
When can Interrupt take place
An Interrupt can only take processor time from tasks with lower priority. When an interrupt is raised, the operating system runs the relevant interrupt service routine(IRS).
What happens before an interrupt request can be handled
At the end of each iteration of the fetch-decode-execute cycle, the processor checks to see if there are any interrupts. If there are, and they are of higher priority than the current task, then a range of steps take place.
What happens when there is an interrupt
The contents of the program counter and the other registers are copied to an area of memory called a stack.
- The relevant ISR can then be loaded by changing the program counter to the location of the ISR in memory.
- When the ISR is complete, the previous values of the program counter and other registers can be restored from the stack to the CPU.
What happens when a new, higher-priority interrupt is raised
The interrupt currently being serviced is also added to a stack in memory and the new interrupt is serviced. Once this new interrupt is finished, the previous interrupt is taken off the stack and continued.
what does scheduling ensure
That each job and user gets sufficient processing time.
Define scheduling
The method an operating system uses to ensure all processes get sufficient processing time.
A scheduler uses a scheduling algorithm to determine how to share processor time
What are the 5 scheduling algorithms
- Round robin
- First come first served
- Shortest job first
- Shortest remaining time
- Multilevel feedback queues
Describe ‘round-robin’
Each process is given a fixed amount of time.
If it hasn’t finished by the end of the time, it goes to the back of the queue so the next process in line can have its turn.