Software applications Flashcards
What is the purpose of the operating system
Provides an interface between the user/ software and the hardware
Why would it be bad for a computer system to not have an OS
Without an OS, the computer would have less flexibility to run a variety of applications as each piece of software would have to be designed for the specific hardware it was run on
What is a user interface
The means by which a user of the computer interacts with the computer and receive the information that is processed
How the OS provide security
Ensures that resources are protected from unauthorised access through the use of permissions and passwords
Describe paging
During paging, logical address space is physically divided into units called pages, which are fixed size and can be stored non-contigously
Describe segmentation
Memory is split using Logical divisions which can be different sizes and can be stored non-contigously
Give 2 difference between paging and segmentation
Fixed size vs Different sizes
Pages made to fit sections of memory, segments are complete sections of programs
Physical divisions vs logical divisions
What is virtual memory
Where the OS swaps parts of the process that are not in use from main memory into allocated space on the hard disk and bring it back when needed
Give 1 pro and con of using virtual memory
Pro: Increases the potential memory storage capacity available
Con: Accessing data from virtual memory is slow and negatively effects performance
Describe multitasking
Where an OS allocates processing time to different tasks and switches between them giving the illusion that multiple things are occurring at once
What is an interrupt
A signal that is sent to the processor to request immediate attention
Give 2 reasons why a processor might be interrupted
Any 2:
Hardware device signaled it has data to process
Hardware device has completed a task
Software process needs OS to perform a function
An allocated amount of time has expired and an action needs to be performed
Hardware failure needs addressing
Describe the steps of an ISR
- Processor checks the interrupt queue to see of there is a high priority interrupt
- If there is, the processor moves the current contents of the registers into a stack
- The processor then loads the appropriate ISR into the RAM and sets a flag to show the ISR has begun
- The processor services the interrupt then checks if there is another.
- If not the flag is removed and the stack loaded back
If the current process is higher priority than an interrupt what happens
The interrupt must wait in a queue for the process before the ISR occurs
Describe round Robin scheduling
Processor time is split into equal time slices. If a process isn’t completed within a time slice is suspended and will only continue at its next time slice
Describe first come first served scheduling
The first process has as much processing time it needs to finish. Other processes must wait their turn.
Like a queue at the shop
Give 1 Pro and con of round Robin scheduling
Pro: ensures that every task is allocated processor time without waiting to long
Con: Does not scale well, as the more processes run the less time slices each has
Give one pro and con of first come first serve
Pro: Once a job starts it is guaranteed to be completed, no starvation
Con: Long queues may cause long waits for some processes
What is starvation
When a process cannot complete its execution because it has been constantly denied processor time
Describe shortest job first scheduling
The process than needs the shortest time to complete goes first
Give 1 Pro and con of shortest job first
Pro: shortest processes removed quickly which saves time for longer jobs
Cons: Longer jobs may face starvation is shorter jobs keep getting added
Describe shortest time first scheduling
The process with the shortest time to completion goes first until a different task is added with a shorter time to completion, which takes priority
Give 1 Pro and con of shortest time first
Pro: shortest time processes completed quickly so more time for longer processes
Cons: Longer processes face starvation if shorter time processes keep getting added
Give 1 Pro and con of shortest time first
Pro: shortest time processes completed quickly so more time for longer processes
Cons: Longer processes face starvation if shorter time processes keep getting added
Describe Multi-level feedback queue scheduling
Queues of tasks have different priorities, where processes are chosen based on the priority their queue and how much processing time it has already had
What is the advantage of multi level feedback queues
All tasks are given processor time, but more important jobs are dealt with sooner. No signal high priority task dominates the processor time
What does distributed OS do
Coordinates the communication between separate systems and essentially makes each node component parts that are joined together as a whole
When are distributed OSs useful
When processor intensive tasks need to be completed and a single processor cannot provide enough computational power on its own so needs multiple nodes to help
What does an embedded OS do
Provides a reliable platform for specific applications to carry out their processes at the cost of the flexibility of the system
When would an embedded OS be used
Used for systems that only serve specific purposes such as a washing machine