System software- S2 Flashcards
Operation system (OS)
a program or set of programs that manages the operations of the computer for the user.
RAM
An internal memory: Random access memory. It’s used to store programs and data that are currently being used. Its is volatile (contents are lost when computer is switched off)
ROM
An internal memory: read-only memory. Holds information that needs to be permanently in memory.
Give functions of the operation system
Memory management, Interrupts, Processor scheduling,
What is the purpose of memory management
- converting logical addresses to physical addresses
- Puts programs into free memory and manages them, making sure they don’t overwrite
- Using paging or segmentation techniques.
- Allows for multitasking.
- Allows for programs larger than the main memory to run (using virtual memory).
Whats paging system?
Pages are fixed sizes that are physical divisions and is used in virtual memory but can be used in any memory.
Memory does not have to be held in continuous pages
Segmentation
A way of partitioning memory, segments are not fixed size but vary in size, and are logical divisions which hold complete sections of programs.
Purpose of virtual memory
A feature of an operating system that allows programs to run when there is insufficient memory available.
How is virtual memory done?
temporarily transferring pages of data from RAM to disk storage to make space in memory for the pages needed.
What problems can occur with virtual memory
More time spent transferring pages than processing leads to disk threshing and the computer may ‘hang’ (computer program or system stops responding to input).
What is an interrupt
Signal sent to the processor requesting for processing time, and for the current execution to be stopped in order to do a more important task.
Give example of interrupts
- User interrupt
- Power (failure) = high priority
- I/O interrupt (mouse and keyboard, printer) = low priority
- Clock interrupt (data-logging application that has to read an input sensor every 1 second.) = medium priority
- Software interrupt (software has detected that an error has occurred)
Why do interrupts have priorities
Interrupts have priorities to decide between interrupt & current task, or for ensuring when you have more than one interrupt the most urgent task is performed first.
What happens when there is an interrupt
- CPU receives an interrupt signal and suspends execution of the current program/process running.
- It disables interrupts of low priority.
- It puts the program counter onto the system stack
- Interrupt Service Routine is called to deal with the interrupt. There are different responses for different interrupts
- Original values of the registers are retrieved from the stack and the process resumes from the point that it left off.
- A test for the presence of interrupts is carried out at the end of each fetch-decode-execute cycle.
Processor scheduling
is the operating system module responsible for allocating processor time so that when there are multiple jobs/applications running, each job is given processor time.