1.2.1 Systems Software Flashcards Preview

A-Level OCR Computer Science > 1.2.1 Systems Software > Flashcards

Flashcards in 1.2.1 Systems Software Deck (32)
Loading flashcards...
1
Q

What is an operating system?

A

A program that manages the operations of the computer for the user in order to act as a bridge between the hardware and the user.

2
Q

What are the six functions an operating system performs?

A
Providing a user interface
Memory management
Handling interrupts
Processor scheduling
Provide security.
Management of all I/O.
3
Q

What are the two memory management techniques?

A

Paging and segmentation.

4
Q

How does paging work?

A

Memory is divided into “pages” of 4kb each, a program can be stored in several non-contiguous pages. A page table uses mapping to store the link between the physical and logical page locations.

5
Q

How does segmentation work?

A

Memory is divided logically into segments according to its contents.

6
Q

What is an interrupt?

A

A signal from software, hardware, internal clock or peripherals.

7
Q

Why does a software interrupt happen?

A

When an application terminates or requests certain services from the OS.

8
Q

Why might a hardware interrupt happen?

A

A hardware interrupt will occur when an I/O operation is complete or an error arises.

9
Q

If there are no errors and nothing being completed or terminated why might an interrupt still take place?

A

Interrupts are triggered regularly by a timer in order to interrupt a process to allow the next process to have processor time.

10
Q

What happens when the CPU receives an interrupt?

A

The CPU suspends the current process and disables all interrupts of a lower priority. it then clears the program counter and all other registers by sending their values into the system stack. and the appropriate ISR is called to deal with the issue.

11
Q

What is an example of a high priority interrupt?

A

Power-fail interrupt.

12
Q

What is an example of a low priority interrupt?

A

I/O operation termination.

13
Q

When does the test for interrupt presence occur in the fetch decode execute cycle?

A

at the end, if the presence is detected then control is transferred to the appropriate ISR.

14
Q

What does multitasking mean?

A

A single processor computer carrying out small parts of multiple larger tasks to give the appearance of simultaneous processing.

15
Q

What are the objectives of the scheduler?

A

Maximise throughput
Be fair to all users
Provide acceptable response time for users
Ensure hardware is in as much use as possible.

16
Q

What are the five scheduling algorithms?

A
RR - Round robin
FCFS - First come first serve
SJF - Shortest job first
SRT - Shortest remaining time
Multilevel feedback queues.
17
Q

How does RR work?

A

Processors are dispatched in a first in first out basis, each process is given the same time slice with the processor, regardless whether the process has been completed or not, the next process will be given its time slice, this continues until the processes have been finished.

18
Q

How does FCFS work?

A

Jobs are processed in the order in which they arrive in their entirety.

19
Q

How does SJF work?

A

The process with the smallest estimated time is run next.

20
Q

How does SRT work?

A

The process with the smallest estimated time is run next since that will always be the one currently executing processes will be completed in full.

21
Q

How do multilevel feedback queues work?

A

The algorithm implements multiple queues all with their own scheduling algorithm and each queue is organised based on priority.

22
Q

What are the five types of OS?

A
Distributed
Embedded
Multitasking
Multi-user
Real-time
23
Q

What is a distributed OS?

A

A form of parallel processing which spreads a workload over multiple servers but appears to the user as if it were a single system handling the workload.

24
Q

What is a real-time OS?

A

An operating system designed to give a response within a guaranteed time frame

25
Q

What is an embedded OS?

A

An OS with a minimal user interface used to control devices based on input from sensors.

26
Q

What is a multitasking OS?

A

An OS that allows the user to run multiple programs at once and can switch between them to give the appearance only one is running.

27
Q

What does BIOS stand for?

A

Basic Input Output System.

28
Q

Where is the BIOS stored?

A

EPROM.

29
Q

What is the purpose of the BIOS?

A

To initialise the PC and to test the system hardware as well as to load the operating system from the hard disk to RAM.

30
Q

What is a device driver?

A

A computer program that provides a software interface to a particular piece of hardware.

31
Q

What is the point of a device driver?

A

It enables operating systems to control new hardware without needing to know the full details of the hardware in question.

32
Q

Define a virtual machine plus a fact.

A

Any instance where software is used to take on the function of the machine. Code running on a VM tends to be slower than compiled.