1.2.1 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

need for operating system

A

OS provides an interface between the user and hardware and is responsible for managing computer resources including input/output/storage devices, memory management and all other software’s running on the computer system. When computer boots up, main part of OS is loaded onto RAM which is responsible for process and hardware management and other low-level tasks(kernel). Once loaded, user interface is loaded alongside key utility software.

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

similarities between paging and segmentation

A
  • divide up memory
  • Both use indexes
  • assigned to memory when needed
  • allow programs to run without sufficient memory (virtual memory)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

virtual memory

A

when main memory sees pages haven’t been used frequently, it must move these pages to vm to allow new programs.
used to extend memory so more programs can run even when there isn’t enough physical memory.

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

advantages and disadvantages of virtual memory

A

ADV: can run more than one programs at once, run larger programs with less real RAM.

DIS: applications run slower and it takes more time to switch, if more time spent switching pages from memory to disk (thrashing) than processing instructions = slower.

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

softwares

A

User doesn’t interact directly with hardware but uses application software (word/spreadsheet). OS provides platform for AS to run, usually involves a common user interface so the user can interact with the hardware in a friendly and familiar way. OS will also provide its own user interface along AS.
There are a number of these, and some are built into OS to help maintain the computer (compression/encryption software.)
Responsible for splitting RAM into chunks and locating them to different processes depending on their needs. Also responsible for handling virtual memory.
Responsible for managing processes, dealing with multitasking and deciding what order processes should go in.
Responsible for management the file system of secondary storage devices, OS had to decide where to store devices and where they’ll be loaded from again.

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

scheduling

A

Pre-emptive: When jobs are actively made to start and stop by the os
RR: when each job gets a fixed time slice.
- ADV: each jobs gets equal amounts of the CPU, its cyclic in nature so no starvation. DIS: if quantum is set too short, increases overhead and decreases efficiency.
- DIS: Setting the quantum too short, increases the overhead and lowers the CPU efficiency, but setting it too long may cause poor response to short processes.
STR: when jobs quickest to complete are done first but when a new job comes it stops and revaluates
- ADV: makes the processing of the jobs faster than SJN algorithm, given its overhead charges are not counted.
- DIS: swapping context is done more often taking up CPUs valuable processing time, increases process time making it slower.
MLFQ: when jobs are put in different queues depending on their importance.
- ADV: low scheduling overhead, allows aging so no starvation.
- DIS: Not flexible and more complex
Non pre-emptive: once a job has started, it’s left alone until its completed
FCFS: jobs are executed in the order they arrive in, first job that comes gets executed first
- ADV: its simple and easy to understand as well as implement.
- DIS: there could be short processes at the end of the queue so they have to wait for long processes to finish, throughput isn’t efficient.
SJF: quickest job to complete is done first.
- ADV: favours short processes and could be most optimal with the shortest amount of waiting time for each job.
- DIS: could cause starvation if short jobs keep coming.

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

BIOS

A

Basic Input Output System is the first program that runs when a computer system is switched on.
The PC register points to the location of the BIOS upon each start-up of the computer as the BIOS is responsible for running various key tests before the OS is loaded into memory.

It initialises and tests the hardware in a computer system so that it is ready for use by other software on the computer. This process is often referred to as a Power-On Self-Test (POST). The BIOS also loads the bootloader program from secondary storage, which starts the initialisation of the operating system.

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

BIOS tests

A

POST (Power-on self test) which ensures that all hardware (keyboards, disk drives) is correctly connected and functional.
Checking the CPU clock, memory and processor is operational.
Testing for external memory devices connected to the computer.
The BIOS is critical to the computer system as it is only after these checks are completed that the operating system can be loaded into RAM from the hard disk.

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

where is BIOS stored?

A

ROM contains the BIOS which is the firmware for the motherboard.
Initial start-up instructions are stored on ROM.
BIOS settings are stored in flash memory so they can be changed and are retained when the power is switched off.
Without the BIOS, nothing could be loaded, as the main memory does not contain any instructions that could start the boot process.

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

device driver

A

computer programs which are provided by the operating system and allow the operating system to interact with hardware.
- software that tells the operating system how to communicate with a device.

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

how are device drivers used?

A

When a piece of hardware is used, such as a keyboard, it’s the device driver that communicates this request to the operating system which can then produce the relevant output - which in this case is displaying a letter on the screen.
Device driver translates the OS instructions to print the document into a series of instructions that a specific piece of hardware will understand.

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

are device drivers specific?

A

Device drivers are specific to the computer’s architecture, so different drivers must be used for different device types such as smartphones, games consoles and desktop PCs.
As drivers interact with the operating system, they are also specific to the operating system installed on the device.

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

virtual machine

A

A host system might run software that allows other software to behave as if it were running on a hardware system: this is called a virtual machine.
they can be configured to replicate any combination of hardware so that the software running on it works as if it were accessing certain devices, even if they don’t exist.

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

how do VM work?

A

Rather than compiling program code into machine code that can only be run on similar platforms, some languages use virtual machines to act as an intermediary between the system and the source code.
At run-time, the original program is translated into intermediate code, which is then passed to a virtual machine.
The VM then runs this code and determines how to control the host computer so that it can carry out the relevant instructions.

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

advantages and disadvantages of VM

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

Paging

A

Allocates fixed sized blocks of memory to processes (blocks = pages). Made to fit sections of memory, are physical divisions and size of frame should be kept the same as the pages to give maximum utilisation of mm and avoid external fragmentation. Used for faster access to data.

Swapping is easy between equal size pages + frames= helps with vm. Eliminates need for contiguous allocation of physical memory. No EF.

May cause internal fragmentation, doesn’t take into account of how program is split and could separate instructions in loop.

17
Q

Segmentation

A

Alternative method to allocating memory, divides it into variable sizes, logically split and exact size requested rather than forcing data into chunks. Are complete sections of programs. Ideal when storing blocks of data lie library.
To allow variable sized segments, memory management must store length of each segment-on-segment table. To access memory address, segment number and offset is required.

18
Q

Interrupts

A

A computer system executes programs with the processor fetching, decoding and executing instructions over and over.
While this is occurring, other devices and applications may require the processors’ attention.

Interrupts are a way to signal to the processor that they require attention.

19
Q

Interrupt register

A
20
Q

How do interrupts work?

A
21
Q

functions of an OS

A

Provides a user interface
Provides utilities
Handles interrupts

22
Q

how is a computer’s OS loaded up

A

The BIOS is loaded and it loads the OS up

23
Q

different ways virtual machines are used for game consoles

A

A virtual machine is a piece of software that behaves in
the same way as an actual computer.
- In this case the VM on the computer would behave as
though it were a games console.
- Some VMs are used to interpret intermediate code

VMs of different consoles allow the program to be tested
for different machines from the programmer’s computer.
- Saves space and the time and cost of setting up multiple
systems.
- Requires a powerful computer (as must run its own OS
and the VM).
- The VMs need to be accurate representations of the
physical machine or the final code will not work on them.
- Game could be written in a language that is interpreted
to intermediate code and is run off a VM.
- This means only one version of the code needs be
written and it will run on all systems.
- This saves time and maximizes profits.
- However the game will run more slowly than if it had
been compiled to native code.

Using Virtual Machines may be a useful tool during
testing, saving time.
- Realistically physical machines will have to be used at
some point to be 100% sure everything works as it
should.
- Using a VM to run intermediate code makes it easy to
release for a variety of platforms.
- But will be at the expense of game performance.

24
Q

State the name of and describe two methods that the operating system can use to divide
the contents of RAM.

A

Paging…(1)
Memory is divided into fixed/physical units(1)
Segmentation… (1)
Memory is divided logically/variable size according to its contents.

25
Q

why would a company use multitasking

A

Multitasking allows the user to run more than one program at the same time. (1)
E.g. running CAD software whilst checking emails.

26
Q

Distributed, embedded, multi-tasking,
multi-user and real time operating
systems.

A
27
Q

Explain why the self-driving system will use a real-time operating system

A

Needs to be able to respond instantly to
changes…
- …such as someone stepping in front of car (or
other sensible example)
- RTOS offers a guaranteed response time.
- A non RTOS might be busy dealing with other
tasks and not respond until it is too late.

28
Q

embedded operating system

A

System software/software used to
manage the device
Which is built into the device itself
Stored in the device’s ROM/cannot be
changed
Specific to the hardware/purpose