Software applications Flashcards

1
Q

What is the purpose of the operating system

A

Provides an interface between the user/ software and the hardware

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

Why would it be bad for a computer system to not have an OS

A

Without an OS, the computer would have less flexibility to run a variety of applications as each piece of software would have to be designed for the specific hardware it was run on

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

What is a user interface

A

The means by which a user of the computer interacts with the computer and receive the information that is processed

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

How the OS provide security

A

Ensures that resources are protected from unauthorised access through the use of permissions and passwords

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

Describe paging

A

During paging, logical address space is physically divided into units called pages, which are fixed size and can be stored non-contigously

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

Describe segmentation

A

Memory is split using Logical divisions which can be different sizes and can be stored non-contigously

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

Give 2 difference between paging and segmentation

A

Fixed size vs Different sizes

Pages made to fit sections of memory, segments are complete sections of programs

Physical divisions vs logical divisions

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

What is virtual memory

A

Where the OS swaps parts of the process that are not in use from main memory into allocated space on the hard disk and bring it back when needed

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

Give 1 pro and con of using virtual memory

A

Pro: Increases the potential memory storage capacity available

Con: Accessing data from virtual memory is slow and negatively effects performance

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

Describe multitasking

A

Where an OS allocates processing time to different tasks and switches between them giving the illusion that multiple things are occurring at once

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

What is an interrupt

A

A signal that is sent to the processor to request immediate attention

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

Give 2 reasons why a processor might be interrupted

A

Any 2:
Hardware device signaled it has data to process
Hardware device has completed a task
Software process needs OS to perform a function
An allocated amount of time has expired and an action needs to be performed
Hardware failure needs addressing

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

Describe the steps of an ISR

A
  1. Processor checks the interrupt queue to see of there is a high priority interrupt
  2. If there is, the processor moves the current contents of the registers into a stack
  3. The processor then loads the appropriate ISR into the RAM and sets a flag to show the ISR has begun
  4. The processor services the interrupt then checks if there is another.
  5. If not the flag is removed and the stack loaded back
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

If the current process is higher priority than an interrupt what happens

A

The interrupt must wait in a queue for the process before the ISR occurs

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

Describe round Robin scheduling

A

Processor time is split into equal time slices. If a process isn’t completed within a time slice is suspended and will only continue at its next time slice

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

Describe first come first served scheduling

A

The first process has as much processing time it needs to finish. Other processes must wait their turn.

Like a queue at the shop

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

Give 1 Pro and con of round Robin scheduling

A

Pro: ensures that every task is allocated processor time without waiting to long

Con: Does not scale well, as the more processes run the less time slices each has

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

Give one pro and con of first come first serve

A

Pro: Once a job starts it is guaranteed to be completed, no starvation

Con: Long queues may cause long waits for some processes

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

What is starvation

A

When a process cannot complete its execution because it has been constantly denied processor time

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

Describe shortest job first scheduling

A

The process than needs the shortest time to complete goes first

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

Give 1 Pro and con of shortest job first

A

Pro: shortest processes removed quickly which saves time for longer jobs

Cons: Longer jobs may face starvation is shorter jobs keep getting added

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

Describe shortest time first scheduling

A

The process with the shortest time to completion goes first until a different task is added with a shorter time to completion, which takes priority

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

Give 1 Pro and con of shortest time first

A

Pro: shortest time processes completed quickly so more time for longer processes

Cons: Longer processes face starvation if shorter time processes keep getting added

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

Give 1 Pro and con of shortest time first

A

Pro: shortest time processes completed quickly so more time for longer processes

Cons: Longer processes face starvation if shorter time processes keep getting added

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Describe Multi-level feedback queue scheduling
Queues of tasks have different priorities, where processes are chosen based on the priority their queue and how much processing time it has already had
26
What is the advantage of multi level feedback queues
All tasks are given processor time, but more important jobs are dealt with sooner. No signal high priority task dominates the processor time
27
What does distributed OS do
Coordinates the communication between separate systems and essentially makes each node component parts that are joined together as a whole
28
When are distributed OSs useful
When processor intensive tasks need to be completed and a single processor cannot provide enough computational power on its own so needs multiple nodes to help
29
What does an embedded OS do
Provides a reliable platform for specific applications to carry out their processes at the cost of the flexibility of the system
30
When would an embedded OS be used
Used for systems that only serve specific purposes such as a washing machine
31
When would an embedded OS be used
Used for systems that only serve specific purposes such as a washing machine
32
What does an multitasking OS do
Manages the computers resources to provide the illusion that it can seamlessly switch between tasks, by quickly switching between them
33
When would a multitasking OS be useful
For systems that run multiple things simultaneously, like a laptop with multiple apps open
34
What does a multi user OS do
Provides the facilities for multiple users to access the same system by controlling the resources that users can access without affecting other users
35
When would a multi user OS be used
A place where multiple users may use the same computers but have different log in details, like a school
36
What does a real time OS do
Supports applications that need to process data to produce particular outputs as fast as possible by ensuring a consistent response to inputs within a given time Not very flexible
37
When might a real time OS be used
Self-driving cars which needs fast response time to react to inputs so it can avoid danger quickly
38
What does the BIOS do
Initializes and tests the hardware in a computer system so that it is ready from use Uses the POST
39
What does POST stand for
Power on self test
40
What does the bootstrap do
Starts the initialization of the OS
41
What does the POST do
Ensures that all hardware are correctly connected and functional
42
What is a device driver
A program that controls the operation of a specific device (keyboard, mouse etc) that is part of the computer system
43
What do device drivers do
Provide an interface that allows the OS and other software to interact with the device, without having to deal with the particular hardware implementation of the device
44
What is a virtual machine
Where a host system runs software that allows other software to behave as if it were running on a hardware system
45
Explain 1 potential use of a virtual machine
Supporting incompatible software: Older software may not be able to run on newer systems so a VM can emulate an older system so the older software can run
46
Give two examples of general purpose software
Presentation software Word processor
47
What is special purpose software
Software that is only used for a specific task
48
Give an example of special purpose software
Scientific calculator
49
What is bespoke software
Software that is developed to meet the user's specific requirements
50
Give 3 examples of utility software
3 from: Compression Defragmentation Antivirus Automatic updating Backups
51
What is the purpose of utility software
Utility software is used maintain the OS, ensuring it to be consistent and high performing
52
What is closed source software
Where the source code is not freely available and users who gain access to use the code cannot make changes to the source code itself
53
When an end user purchases closed source software what are they actually buying
A license to use the software
54
What is open source code
Where the source code is freely available to download, where users can contribute to improving it
55
Give one pro and con of closed source software
Pro: Development for user requirements Con: Usually not free
56
Give one pro and con of open source code
Pro: Usually free Con: Quality varies, may contain bugs or be outdated
57
What is a translator
A program that converts high level language into low level object code which can be executed by the computer
58
How does a compiler work
After carrying out a number of checks, it translates high level code into machine code all at once
59
How does a compiler work
After carrying out a number of checks, it translates high level code into machine code all at once
60
Give 1 drawback of using a compiler
The compilation process is long compared to other translators and if changes are made the whole program must be recompiled again
61
Give one benefit of using a compiler
One the program is compiled the code can be run on different devices without the translator, assuming the code is compatible with the new processor and OS
62
How does an interpreter work
Translates code line by line and stop if an error is found
63
Give one drawback of an interpreter
The code must be translated every time it is executed
64
Give one benefit of interpreters
Good for testing code and pinpointing errors as time isn't wasted compiling the whole program
65
What does an assembler do
Translates assembly code into machine code
66
What are the stages of compilation in order
Lexical analysis Syntax analysis Code generation Code optimisation
67
What happens during lexical analysis
1. All white space is removed 2. Creates tokens out of keywords and operators (lexemes) 3. All comments are ignored 4. Tokens are assembled into a symbol table
68
What is a token
A string that the computer recognises , e.g. the number 8 may be assigned a token 'number.8'
69
What happens during syntax analysis
1. Tokenised code is compared to the rules of the programming language 2. If a section is found to not fit these rules an error occurs stat what and where the error I 3. The user will get a full error report on all the errors that occurred
70
What happens during code generation
Machine code is generated, which is what the CPU will work with to run the program
71
What happens during optimisation
Machine code is optimised for efficiency, by removing procedures and variables that are written into the code but never used
72
What is a library
Pre-written, compiled, tested and checked pieces of code that developers can rely on to help shorten code
73
Give 1 Pro and con of libraries
Pro: Give developers shortcuts to achieve what they want without having to repeat code Con: May not contain a function the developer requires
74
What does a linker do
Links software responsible for linking libraries to code that uses them
75
What is a loader
A type of program that loads the program you're trying to run