1.2 Software Flashcards

S

1
Q

What is an os

A

Program or set of programs that manages the operations of the computer for the user.
Acts as bridge between user and computers hardware

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

Where is the os stored

A

Permanent storage e.g) hard disk

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

What is the loader

A

Small program held in ROM that send instructions to load the os by copying it into RAM while the computer is switched off.

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

What are the functions of the os (5)

A

Memory management
Interrupt service routines
Processor Scheduling
Backing store management
Management of all input and output

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

How does memory management work

A

Each program is allocated a specific area of memory whilst the computer is running.

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

How does paging work

A

Memory Is divided into fixed size pages and process held in memory may be held in non-contagious pages

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

How does a page table work

A

It uses mapping to store a link between the physical memory address and the logical address space of each process

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

How does segmentation work

A

Logical division of address ace into varying length segments depending on the program structure.

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

What happens when a computer has insufficient memory

A

Deterioration in performance as pages are swapped in and out of RAM to the point where the os is spending time swapping pages in and out

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

What is an interrupt? +examples

A

Signal from a software program, hardware device or internal clock to the CPU.
A software interrupt occurs when an application program terminates or requests certain services from the os.
A hardware interrupt may occur when an I/O operation is complete or an error occurs
Interrupts can be triggered regularly by a timer, allowing for multitasking

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

What happens when the CPU receives and interrupt signal

A

It suspends execution of the running program or process and disables all interrupts of a lower priority.
It then puts all the value of the PC and each register onto the system stack while an interrupt service routine is called to deal with the interrupt.
Once the interrupt has been services the og values of the registers are retrieved from the stack and the process resumes from where it stopped.

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

How is multitasking done

A

Computer carries out small parts of multiple larger tasks in turn, the processor can give the appearance of multitasking

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

What is the schedular

A

OS module responsible for ensuring that processor time is used as efficiently as possible

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

What are the objectives of a schedular

A

Maximise throughput
Be fair to all users on a multi user system
Provide acceptable response time
Ensure hardware resources are kept as busy as possible

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

How does round robin work

A

Each process is given a time slice, os sets and interval timer to generate interrupts at specific times.

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

How does first come first served work

A

Jobs processed in order they arrive

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

How does shortest time remaining work

A

Process with shortest estimated running time is run next.

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

How do multi level feedback queues work

A

Gives preference to short jobs and I/o bound processes.
Separates processes based on need

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

What is backing store management

A

Where files and applications are loaded from memory into.
os keeps directory of where files are stored
Also needs to know areas of free storage

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

What is peripheral management

A

A process carried out by the operating system managing the way peripherals (hardware) interact with software

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

What is a buffer

A

Area of memory where for example data to be printed can be stored so the CPU can continue with another task. It compensates for the difference in speed between the output device and CPU

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

What is a distributed operating system

A

Form of parallel processing system that spreads the load over multiple computer servers. A job is split into several tasks run on a separate computer, coordinated by the os

23
Q

What is a multi tasking system

A

Running multiple tasks at the same time, switching between them so each one appears to be the only one running.

24
Q

What is a multi user system

A

A single powerful machine or supercomputer is connected to dozens or hundreds of terminals all using the mainframe CPU. Each user gets a slice of processor time based on scheduling algorithm.

25
Q

What is a mobile operating system

A

They combine features of a personal computer os with their own special features, such as managing cellular and wireless connectivity and GPUs.

26
Q

What are the features of an embedded os

A

Minimal user interface
Accept sensor inputs and send output to control devices
Limited RAM
No permanent date storage to manage

27
Q

What are the features of a real time os

A

Must respond quickly to inputs or sensors
Must deal with many inputs simultaneously
Must have failsafe mechanisms designed to detect and take appropriate action if hardware fails
Must incorporate redundancy

28
Q

What is the BIOS

A

Program that gets computer started when it is turned on
Initialises and tests the system hardware components and loads the os from hard disk into RAM

29
Q

What is a device driver

A

Computer program that provides a software interface to a particular hardware device
Hardware dependent and os specific

30
Q

How does a device driver communicate

A

Communicates via system bus
When program invokes routine in driver, the driver issues commands to the device. Once the device sends data back to the driver, the driver may invoke routines in the og program

31
Q

What is a virtual machine

A

Any instance where software is used to take on the function of the machine, like executing intermediate code or running an os with another to emulate different hardware

32
Q

What is system software

A

Software needed to run the computers hardware and application programs, including os, utility programs, libraries and programming language translators

33
Q

What is resource management

A

Managing all the computer hardware including the CPU, memory and keyboard

34
Q

What does user interface do

A

Enables users to perform tasks such as running application software, changing settings on the computer and downloading and installing new software

35
Q

What is utility software

A

System software designed to optimise the performance of the computer or perform tasks such as backing up files

36
Q

What is disk defragmentation

A

Program that will recognise a magnetic hard disk so that files that have been split up into blocks and stored all over the disk will be recombined in a single series of sequential blocks.

37
Q

What is automatic updating utility

A

Ensures any software installed on the computer is up to date. Automatic update regularly checks internet for updates.
Firewalls and antivirus must be updated regularly

38
Q

What does a virus checker utility do

A

Checks your hard drive and incoming emails and internet downloads for viruses and removes them

39
Q

Difference between general purpose and special purpose software

A

General : Used for many different purposes
Special: Performs a single specific task or set of tasks

40
Q

Difference between off the shelf and bespoke software

A

Off the shelf:
Less expensive
Unwanted features
Miss out on some desirable features
Installed immediately
Well documented and tested
Bespoke:
Costly
Customised to user requirements
Long development time
Contain errors

41
Q

What is open source software

A

Licensed for use with no charge
Distributed with source code, can be modified
Any new software created from open source must also be opt
More organic

42
Q

What is closed source software

A

Restrictions on how software can be used
Company or person who wrote software will hold copyright
User will not have access to source code, can not modify it
Regular updates
Support available

43
Q

What is assembly code

A

Low level language w each instruction in assembly code almost always being equivalent to a machine code instruction

44
Q

What is an instruction set

A

Machine code instructions that a particular computer can execute

45
Q

What is the instruction set dependent on

A

Hardware!! Therefore each different type of processor will have a different instruction set and assembly code

46
Q

What does an assembler do

A

Takes each assembly code instruction and converts it into the 0s and 1s of the corresponding machine code instruction

47
Q

What is the source code

A

Input to the assembler

48
Q

What is the object code

A

Output of the assembler (machine code)

49
Q

What is a compiler

A

Programmer that translates high level language into machine code
It produces an object code that can be saved and run whenever

50
Q

What is an interpreter

A

Type of programming language translator that looks at each line of the source program, analyses it and if it contains no syntax errors, translates it into machine code and runs it.

51
Q

What is byte code

A

Intermediate representation used by most interpreted languages, which combines compiling and interpreting and is executed by a byte code interpreter
Allows for platform independence
Extra security layer between computer and program

52
Q

Advantages of a compiler

A

Object code can be saved and ran whenever
Object code executes faster than interpreted code
Object code distributed without compiler present
More secure
HOWEVER,
If error discovered whole program has to be recompiled

53
Q

Advantages if an interpreter

A

Platform independence, source code can be run on any machine
Useful when there is no need for lengthy recompilation each time an error is discovered
HOWEVER,
Program may run slower as each statement has to be translated to machine code every time it is encountered.