SLR4 Flashcards

1
Q

What does the operating system allow the user to do

A

Talk to the hardware

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

What does application software do

A

Talk to a specific application. E.g. Word, PowerPoint.

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

What is a utility Program

A

A program designed to protect your computer from malware

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

What is multitasking

A

When a computer is running multiple programs at the same time

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

How does a computer handle multitasking

A

A processor allocates a small amount of time to each program and as it happens so quickly it appears instant

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

Where in a computer is data stored

A

In files

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

How does the operating system know which type of application a file is

A

There is an extension at the end of the file name declaring what it is

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

Name 3 benefits of having user management

A
  1. Having multiple users on one machine
  2. Having a roaming machine
  3. Each user has a different access ability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the two main ways of having memory management

A

Paging & Segmentation

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

What are the 4 main traits of paging

A
  1. All pages are a fixed-size
  2. Pages are physical divisions
  3. Could separate instructions making the code inefficient
  4. It is better to keep the instructions together
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the 3 main traits of segmentation

A
  1. Segments are different sizes
  2. Segments are logical divisions
  3. Can lead to small amounts of memory unallocated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is it called when a device requires the processor’s attention

A

An interrupt

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

What will the processor do if an interrupt presents a problem

A

The processor will stop executing its current instruction and focus on the interrupt

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

How does a processor handle an interrupt

A

The processor will activate the interrupt service routine

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

What is the interrupt service routine

A

A program with a set of instructions that need to be fetched, decoded, and executed to continue

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

What happens to the current process when an interrupt is received

A

The current process gets moved into the stack which stores the contents of the registers

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

Why do we have interrupts

A

Other devices may require the CPUs attention and their priority is greater than the current instruction

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

Give the 5 types of interrupt and an example of each

A
  1. Hardware (Power)
  2. Timer (screen record)
  3. Input / output (USB)
  4. User (mouse)
  5. Software (illegal instruction)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What happens when the interrupt is complete

A

The original instruction is popped back off the stack into the registers to be executed

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

What does a scheduler manage

A

Which process to execute next and how much time to spend on it

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

How is time messured in a computer

A

In ticks

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

What does running state mean

A

Running state is when a process is running

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

How does a process get to the CPU

A

A process will enter the queue and once it reaches the front of the queue it will enter the CPU

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

What happens if the process is blocked

A

This means that the user is required to input something

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What happens when a process in the CPU takes more time than the allocated number of ticks
The process gets suspended and rejoins the back of the queue until it re-enters the CPU
26
What happens when a process is finished
It leaves the CPU
27
What does FCSC stand for
First Come First Serve
28
In what order does FCSC execute a process in
The first process to arrive in the queue gets executed before everything else
29
What does not get used in FCSC
1. Blocking 2. Priority 3. Time suspending
30
What does SJF stand for
Shortest Job First
31
In what order does SJF execute processes in
When a job joins the queue its place will be in the order of whichever job is the shortest meaning the shortest job will always get executed first
32
How is the length of the job decided
The number of ticks it takes to complete
33
What does RR stand for
Round Robin
34
What other form of scheduling is RR similar too
FCSC
35
In what way does RR differ from FCSC
Includes a quantum time slice
36
What is a Quantum time slice
Each process has a set number of ticks it can be executed for before being put back in the queue again and again until it is completed
37
What does STR stand for
Shortest Time Remaining
38
Which other form of scheduling is STR similar too
SJF
39
How does SJR differ from SJF
If a new process joins the queue that has less ticks remaining then the process in the CPU will be kicked into quantum
40
What happens when a process is blocked
1. It is removed from the CPU 2. Until the user has confirmed it can continue 3. Other processes are carried out in this time
41
What does MLFQ stand for
Multi-Level Feedback Queue
42
What is a MLFQ
Where there are multiple cores and therefore multiple levels in the queue
43
How can different queues spread the load of the processes
Some queues can just manage small tick time processes and other just manage large tick time processes
44
Can processes move between queues and cores
Yes
45
What are the 5 different operating systems
1. Multi-tasking operating system 2. Multi-user operating system 3. Distributed operating system 4. Embedded operating system 5. Real-time operating system
46
What is the main feature of a multitasking OS
It is able to run multiple programs at the same time
47
Can a multi-tasking OS multi-task
No it just does things incredibly quickly
48
What are the 3 main features of a multi-user OS
1. Can have multiple accounts across multiple computers 2. Can login anywhere 3. All ran off one server
49
What are the 2 main features of a distributed OS
1. Combines the processing power of multiple computers 2. Appears as one system
50
What are the 3 main features of an embedded OS
1. Often designed for very specific tasks and often quite slow 2. Small memory 3. Low power
51
Where are embedded OSs found
TVs, Traffic Lights, Car engine management system
52
What are the 2 main features of a real-time OS
1. The OS responds in real-time 2. Designed around the safety of the user
53
What does BIOS stand for
Basic Input Output System
54
What is the BIOS responsible for
Loading the OS when the computer is switched on
55
Where is the BIOS stored
ROM as you don't need to change it
56
What is a device driver
Software that tells the OS how to communicate with a device
57
What is a virtual machine
a program that does a physical machine job
58
What does an emulator do
Tricks a program into thinking it running on its native hardware whilst on an entirely different machine
59
What are the positives and negatives of emulators
1. Brings life back to old games 2. Saves money as it allows the user to test a program on another device without actually having the machine 3. Does not pay the creator 4. It is illegal
60
How can you save money with virtual machines
You can spin servers up and down based of off the demand required. Meaning if one server fails the others can pick up the load.
61
What is Java code
An intermediate code
62
How is an intermediate code designed to work
To run on many different platforms
63
How does Java compile its code
Into halfway code known as bytecode
64
Name a benefit of Java intermediate code
It is highly portable