Chapter 3: Part 1 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 3 functions of an operating system.

A

Three from:
- Memory management
- Resource management
- I/Output management
- 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 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 way for an external device to request the use of processor time. If an interrupt is made the processor halts the shcedule and performs the appropriate interrrupt servie routine.

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

-Completes the FDE cycle it is currently working on
-Saves the contents of the Program Counter and Registers onto the Stack
-Identifies The Source of the Interrupt
-Disables all interrupts of a lower priority
-Loads and runs the appropriate ISR
-Restore the Registers from the Stack
-Re-enable all Interrupts
-Resume the execution of normal service

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-pre-emptive: 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: Services 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
systems were a response within a given time
frame is critical eg. 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
bytecode.

A

Advantage: Platform independent,
portable
Disadvantage: Slower execution

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

Describe the similarities and differences between a Page Table, Segment, Table and a Directory.

A

ALL 3 STORE THE PHYSICAL ADDRESSES OF DATA IN MEMORY

PAGE AND SEGMENT TABLES MAP THE LOGICAL ADDRESSES OF THE CODE TO THE PHYSICAL ADDRESSES IN PRIMARY MEMORY THAT THE PAGES OR SEGMENTS HAVE BEEN LOADED INTO

A DIRECTORY IS USED BY THE FILE MANAGER TO KEEP TRACK OF PROGRAM AND DATA IN BACKING STORAGE

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