1.2.1 Operating Systems Flashcards
What is an operating system?
A program/set of programs that manages the operations of the computer for the user. It acts as a bridge between the user and the computers hardware.
How is the operating system loaded?
The operating system is held in permanent storage, eg. on a hard disk. The loader is held in ROM. When a computer is switched on, the loader sends instructions to load the operating system by copying it from storage to RAM.
What are the functions of an operating system?
Memory management. Interrupt service routines. Processor scheduling. Backing store management. Management of all input and output.
Why is memory management needed?
It allows several processes to be run at the same time. It also allows memory to be reallocated and shared when necessary. It protects the data and processes from each other, providing security.
What is paging?
Memory is split into equal fixed sized sections called pages. Programs are allocated a number of pages depending on their size. Some programs may therefore have access memory that they do not require.
What is segmentation?
A logical devision of memory space into various sized blocks called segments. As the segments are based on the program size it is less likely to cause excess memory.
What are the advantages of paging?
Reduces internal fragmentation.
Simple to implement.
Swapping is easy due to the fixed page sizes.
What are the disadvantages of paging?
There is internal fragmentation.
It requires extra memory space which is bad for systems with small RAM.
What are the advantages of segmentation?
There is no internal fragmentation.
It may save memory if the segments are small.
What are the disadvantages of segmentation?
There is external fragmentation.
It can have costly management algorithms.
It needs to find big enough free memory space areas.
Segments of unequal size are not suited for swapping.
What is virtual memory?
Virtual memory is an area of a computer systems secondary memory storage that acts as if it exists as part of the systems RAM or primary memory.
Why is virtual memory needed?
Memory is not limitless. When there is not enough RAM, an area of the hard drive is assigned as virtual memory. A computer can then multitask using more/bigger programs than normally possible.
What are the advantages of virtual memory?
It is helpful in fitting larger programs into smaller programs.
Allows you to run more than 1 application at once.
What are the disadvantages of virtual memory?
Applications may run slower.
Reduces system stability.
Not the same performance as RAM.
Offers less hard drive space.
What is an interrupt?
A signal sent to the CPU, generated by a source such as an I/O device or a system software routine, which causes a break in the execution of the current routine.