OS Support Flashcards

Week 2.8 (27 cards)

1
Q

7 key functions of an OS

A
  1. program creation
  2. program execution
  3. I/O device management
  4. file system control
  5. system access
  6. error handling
  7. performance monitoring
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is an OS

A

fundamental software that manages a computer’s hardware and software resources, allowing users to interact with their devices and applications

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

what is program creation with OS

A

utilities like editors and debuggers to assist in software development

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

what is program execution with OS

A

manages loading programs into memory, initialising I/O, and allocating resources

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

what is I/O device management with OS

A

simplifies interactions by abstracting device-specific commands

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

what is file system control with OS

A

handles file organisation, storage and access permissions

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

what is system access with OS

A

protects resources from unauthorised access and manages user permissions

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

what is error handling with OS

A

detects and responds to hardware/software failures to minimise system disruptions

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

what is performance monitoring with OS

A

tracks resource usage and system efficiency for optimisation

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

what are the 4 types of OS

A
  1. early computers
  2. batch OS
  3. multiprogrammed batch systems
  4. time-sharing systems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

describe OS in early computers

A
  • no OS
  • loaded using toggle switches or card readers
  • manual debugging
  • issues: setup & scheduling
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

describe a batch OS

A
  • users submit jobs
  • computer operator collects multiple jobs & batches them
  • monitor loads & runs jobs 1-by-1 automatically
  • processor executes each job sequentially
  • job control language tells monitor what program to execute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what were the new hardware features needed in batch OS

A
  1. memory protection - preventing user programs from modifying the OS
  2. timer - ensuring no job monopolises the system
  3. privileged instructions - certain commands can only be executed by the OS
  4. interrupts - allow OS to regain control from user programs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

describe multiprogrammed batch systems

A
  • allows multiple programs in memory
  • when one program waits for I/O, the CPU switches to another
  • ^ CPU utilisation
  • no multiprogramming = idle resources
  • uses I/O interrupts & DMA
  • requires memory management
  • needs scheduling algorithms
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

describe time-sharing systems

A
  • allows multiple users to interact with the system simultaneously
  • OS rapidly switches between user programs, giving each as short time slice
  • users experience fast response times
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

difference between multiprogrammed batch systems & time-sharing systems

A
  • multiprogrammed batch: CPU switches between jobs only when one is waiting for I/O
  • time-sharing: CPU switches ar regular intervals to fairly share time among users
17
Q

why is scheduling needed

A

essential for efficient multiprogramming, ensuring resource utilisation

18
Q

4 types of scheduling

A
  1. long-term
  2. medium-term
  3. short-term
  4. I/O scheduling
19
Q

describe long-term scheduling

A
  • decides which jobs are admitted into the system
  • controls the degree of multiprogramming
  • BATCH = jobs were queued and prioritised before being admitted to execution
  • TIME-SHARING = OS accepts all users until the system reaches saturation
  • job becomes a process and moves to the short-term scheduler’s queue
20
Q

describe medium-term scheduling

A
  • helps control degree of multiprogramming by ensuring efficient memory use
  • swapping-out: RAM to disk when memory is full
  • swapping-In: brings processes back to RAM when memory becomes available
  • important in systems without virtual memory to optimise resource use
21
Q

describe short-term scheduling

A

makes frequent decisions on which job to execute next

22
Q

what are the 5 process states during its lifetime

A
  1. new: admitted but not yet ready for execution
  2. ready: waiting for processor access
  3. running: actively being executed
  4. waiting: suspended, waiting for system resource
  5. halted: process has completed execution
23
Q

what is a process control block (PCB)

A
  • OS maintains a PCB for each process, storing its state & essential execution info
  • new job = OS creates a blank PCB & initialises it before moving the process to the ready state
24
Q

what three queues does the OS maintain in scheduling

A
  1. long-term - jobs waiting to enter the system
  2. short-term - ready processes competing for CPU time
  3. I/O - processes waiting for specific output devices
25
how does the OS use queues & scheduling
- OS gains control when an interrupt or service call occurs - short term scheduler selects the next process to execute from the maintained OS queues - typically round-robin or priority-based
26
describe the process flow in OS scheduling
- new process requests enter the long-term queue - once admitted, a process moves to the short-term queue - OS selects a process for execution& hands control over to the CPU - processes may be suspended for I/O or timeout, moving to I/O or short-term queues - OS manages I/O queues and resumes processes when their I/O completes
27