1.2.1 Systems Software Flashcards

(28 cards)

1
Q

what is os

A

operating system:
-boot loader from ROM loads OS into RAM
-manages hardware and provide interface and application software

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

the need of os

A

provide interface
control access
control hardware(peripheral management)
act as a platform which application can be run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

function of os

A

-UI
-memory management
-interrupt handling
-processor scheduling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

memory management

A

paging and segmentation

-os needs to manage the allocation of main memory (RAM) for the programs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

paging

A

memory split into fixed size

-pages are memory divided into fixed size chunks
-each page have an address
-pages can be used by programs and processes
-page table maps the logical memory location and physical memory location

disadvantage: takes no account of how it splits the program-> pages will not be contiguous in physical terms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

segmentation

A

memory split into different lengths

-segments are memory divided into different lengths
-could store a part of program (e.g. particular function/subroutine)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

virtual memory

A

when some of the pages currently open but not actively in used are temporarily swapped and allocated into secondary storage

problem: disk thrashing
-> as main memory fills up and pages are constantly swapping with virtual memory→ computer gets slower

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

interrupts

A

sending a signal to the cpu to raise awareness

examples:
-I/O devices sends interrupt signal
-printer out of paper
-error in program
-power failure
-scheduled interrupt(e.g. updates)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

role of ISR

A

mini program to repsond to interrupt request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

role of interrupt and ISR within FDE cycle

A

interrupts are checked at the end of each clock cycle
ISR kicks in if needed
- pushing current contents of its registers into a stack
- popped from stack and reloaded into CPU once interrupt process is finished

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

purpose of processor scheduling

A

-one cpu process instruction for one application at a time
-os need to schedule when application to use cpu
- illusion of multi-tasking/ applications running simultaneously

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

aim of processor scheduling

A
  • give reasonable run time
  • maximise the use of time in CPU
  • fairness on a multi-user system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

process of scheduling

A
  • new process enters the ready queue
  • moves onto running state when the previous process is executed/ blocked
  • three outcomes after the running state:
    • completely finish the execution AND leave the system
    • blocked : require input/output to finish or continue the process
    • run out of time → process suspended and goes back to the ready queue
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

scheduling algorithm

A

round robin
FCFS
SJF
STR
multi-level feedback queue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

round robin (RR)

A
  • system clock slices the task
  • each process is allocated a fixed amount of time/time slice (by FIFO)
  • if the process is not completed by the end of time slice, it returns to the back of ready queue AND the next job is allocated a time slice
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

first come first served

A
  • processes executed in the order they arrive
  • like a supermarket queue
17
Q

shortest time remaining

A
  • pre-emptive: process can be suspended when a process of higher priority jumps in
  • the suspended process goes to the back of the queue
  • if the suspended process had the smallest run time in the queue, it would be run again
18
Q

shortest job first

A
  • aka shortest process next
  • the process of their job is run until they finish
  • scheduler needs to know how long each process will take
19
Q

multi-level feedback queue

A
  • multiple queues are created with different priority queue
  • jobs uses too much cpu time will be moved to lower priority queue
  • jobs waited for a long time can be moved to a higher priority

advantage: allows flexibility

disadvantage: complex and abstract

suitability: when system has more than one processor/processor core, that can handle more than one process queue at a time

20
Q

types of os

A

distributed
embedded
multi-user
multi-tasking
real time

21
Q

distributed os

A

using the processing power of multiple computers across a network for one single task

22
Q

embedded os

A
  • run on dedicated hardware- for max efficiency with low-powered processors(not cpu) and little memory
    • applications programs held in ROM
    • limited RAM
    • simple and minimal user interface
23
Q

multi-tasking os

A
  • a single processor appear to do more than one task simultaneously by scheduling processor time
    • e.g. computers handling more than one application
24
Q

multi-user os

A

handle request of multiple people using different computers on a network at the same time

25
real time os
real time: system gives a response within a guaranteed time frame - operates in safety critical environment - execute within a known time frame - must be failsafe e.g. monitoring machines in hospitals
26
what is BIOS
- stored in ROM - test all hardware/components (for POST- power on self-test) - boot up OS into RAM
27
device drivers
what is it: - software that tells os to communicate with devices (like mouse, keyboard and printer)//OR// program that provides interface for OS to interact with a device - drivers are hardware dependent and OS specific how does it work: -translates instructions of os to device (e.g. it ensures word documents to be printed the same from any printer)
28
virtual machines
any instance where software is used to take the function of a machine including executing intermediate code or running an os within another - e.g. connect to the school network like a school computer with personal device (remote desktop) - Cloud computing is NOT virtualisation but virtual machines.