1.2.1 Systems Software Flashcards
(32 cards)
OS
refers to collection of programs that work together to provide an interface between user and computer
OS Features
- memory management
- resource managment
- file management
- device drivers
- interrupt managment
- utilities
- security
- UI
Memory management
paging
memory is split up into physical, equal-sized sections known as pages
segmentation
splits up memory into logical sized divisions, segments.
Virtual memory
used section of hard drive to act as RAM, sections of programs not currently in use temporarily removed into VM, via paging - freeing up space in RAM
issue with VM (disk thrashing)
computer freezes, as pages being swapped too frequently between hard disk to main memory
interrupts
signals generated by software/hardware to indicate to processor that process needs attention
interrupts stored in order of priority, OS responsible to ensure interrupts serviced fairly by processor.
interrupt service routine
processor checks contents of interrupt register at end of each FDE cycle. If interrupt exists of higher priority to current, current contents of registers in cpu temporarily transferred into stack. Processor responds by loading ISR into RAM, flag is set ISR has begun
scheduling
ensure all sections of programs being run (jobs) recieve fair amount of processing time
pre-emptive
jobs actively made to start/stop by OS
eg. MLFQ, SRT, RR
NON PRE-EMPTIVE
once job started, left alone until complete
eg. FCFS, SJF
Round robbin
each job given section of processor time (time slice) within its allowed to execute. Once job finished, OS grants another slice, repeats until job is complete.
longer jobs = longer duration time as execution inefficiently split
ignores job priority
FCFS
jobs processed in order in which they enter queue
MLFQ
makes use of multiple queues, each ordered based on different priority
difficult to implement due to deciding which jobs to prioritise
SJF
jobs processed in order according to time required for completion.
Requires processor to know how long each job take
risk of processor starvation, which is when a process is
not given adequate processor time to execute and complete.
SRT
processed according to time left for completion, jobswith least time to completion serviced first.
risk of processor starvation, which is when a process is
not given adequate processor time to execute and complete.
distributed OS
os runs across multiple devices allowing load to spread across multiple computer processors
types of OS
embedded OS
built to perform small range of specific tasks
multi-tasking OS
enables user to carry out task simultaneously, done by time slicing
multi-user OS
MULTIPLE USERS CAN MAKE USE OF ONE COMPUTER, scheduling algorithm used.
risk of processor starvation, which is when a process is
not given adequate processor time to execute and complete.
real time OS
designed to perform a task within a guaranteed time frame.
BIOS
basic input output system