1.2.1 SYSTEMS SOFTWARE Flashcards

1
Q

what is an operating system ?

A

a collection of programs that work together to provide an interface between the user and computer

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

give three functions of an operating system

A
three from:
memory management
resource management 
i/output managment 
interrupt management 
security 
user interface 
utility software
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are the similarities and differences between paging and segmentation?

A

both: are used when RAM space is insufficient , can cause disk thrashing
paging: uses equal-sized sections called pages
segmentation: uses variable - sized , logical sections called segments

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

describe how virtual memory is used when there is not enough RAM

A

a section of the hard drive is used to act as a RAM
sections of programs not currently being used are temporarily moved into virtual memory through paging
this frees up memory for other programs in RAM

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

what is an interrupt?

A

a signal generated by software or hardware to indicate to the processor that a process needs attention

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

explain the stages of the interrupt service routine

A

● Interrupt register checked at the end of each Fetch-Decode-Execute cycle.
● If there is an interrupt exists with a higher priority to the current process, the current contents of the registers
in the CPU are transferred into a stack.
● The relevant interrupt service routine (ISR) is loaded into RAM.
● A flag is set to signal the ISR has begun.
● The flag is reset once the ISR has finished.
● Interrupt register checked again. If interrupts are of a higher priority, the process is repeated.
● If there are no interrupts with a higher priority, the contents of the stack are popped and place back into the
special memory registers
● The fetch-Decode-Execute cycle renews as before

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

are the scheduling algorithms pre-emptive or non pre-emptive ?

A

pre-emptive : RR , SRT , MLFQ

non-preemptive : FCFS, SJF

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

give one advantage and disadvantage of using multilevel feedback queues for scheduling

A

advantage: service most urgent interrupts first
disadvantage: hard to implement

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

define a real-time operating system and when it may be used

A

real-time operating systems perform a task within a guaranteed time frame, they are used in a systems were a response within a given time frame is critical e.g life support systems, self driving cars, power systems

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

describe three functions of the BIOS

A

running tests upon the computer’s start up:
POST(power-on self test) which ensures that all hardware is correctly connected and functional
checking the CPU clock, memory and processor
testing for external memory devices

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

what is the role of a device driver ?

A

enable the operating system to interact with hardware devices

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

describe an instance in which a virtual machine may be used

A

testing programs
protection from malware
running software compatible with different versions and types of operating systems

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

give one advantage and one disadvantage of intermediate code

A

advantage: platform independent , portable

disadvantage : slower execution

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