1.2.1 Systems Software Flashcards
What is the OS?
- A piece of software that controls the software and hardware of the computer
Why is the OS needed?
- Provides the interface between the user and the hardware
- Provides a platform in which users can run programs
Features of the OS: Multitasking
- When you more than one program opened and running at the same time
- Processor allocates a small amount of time to each process and cycles between them
Features of the OS: File management
- Data is stored in data and the extension of the filename tells the OS which application to load the file into
- Allows user to rename, delete, copy and move files
Features of the OS: User management
- Allows users to log onto the same computer
- OS retains settings for each user as each user may have different access rights to files and programs
Features of the OS: User interface
- WIMP
- Visual
- Intuitive
- Optimised for touch and mouse gesture input
What is paging?
- Where memory is split into equal sized sections (pages)
- Physical divisions in which programs are split up to fit in a given number of pages
What is an advantage of paging?
- Allows memory to be allocated in a non-contiguous manner - pages of the same process don’t need to be stored together but can be allocated whenever there’s free space in memory
What is a disadvantage of paging?
- Inefficient: could separate instructions inside a looping condition and are in different pages
What is segmentation?
- Memory is spit into logical sized divisions known as segments, which are complete sections of programs and vary in size
What are the advantages of segmentation?
- Segments do not need to be stored continuously across a fixed address space
- can be moved in and out of memory as required
What are the similarities between paging and segmentation?
- Both allow programs to run despite insufficient memory
- Stored on disk
- Both pages and segments are transferred into RAM when needed
What are the differences between paging and segmentation?
- Pages are fixed size, Segments vary in size
- Pages are made to fit sections of memory, segments are complete sections of programs
- Pages are physical divisions, segments are logical divisions
What is virtual memory?
- An allocated area of a hardware/secondary storage device which is used when there’s not enough physical RAM to store open programs
What is an advantage of virtual memory?
- Extends memory available: swapping instructions and data out of RAM into secondary storage means a vast quantity of memory is potentially available
What are the disadvantages of virtual memory?
- Accessing a secondary storage medium is slower than accessing RAM, may slow down performance
- Disk thrashing: When the computer ‘freezes’ due to pages/segments being swapped out too frequently between the hard disk and RAM
What is an interrupt?
- A way of signaling the processor when other devices and applications require attention
What is the Interrupt Service Routine (ISR)?
Program with a set of instructions that need to be fetched, decoded and executed in order to carry out the operations of the interrupt
Where can ISRs be found?
Built into the OS or provided via device drivers