Operating Systems Flashcards

1
Q

Operating system

A

to allocate the shared system resources to the executing programs

a collection of program which makes it easier for us to use a computer

a simpler abstraction of the underlying hardware (hides the complexity of hardware)

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

Hardware

A

basic computing resources, cpu etc

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

Operating system

A

controls and coordinates use of hardware amongst application and uses

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

Application programs

A

ways in which the system resources are used to solve computing problems, compilers, text editors, email clients, webs browsers, games

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

Users

A

people, machines and other computers

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

Uniprogramming

A

Ability to only conduct one program at a time

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

Multi-programming

A

Executing multiple programs on the same CPU giving the user the impression that these programs are running at the same time but in reality they are running one after the other

There must be enough memory to hold the OS (resident monitor) and one user program

When one job needs to wait for the I/O the processor can switch to the other job which is likely not waiting for the IO

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

Time sharing system

A

Principle objective is to minimise response time

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

Bootstrap program

A

Small piece of software stored in the memory area which kicks in and loads the system when you press the power button to turn your laptop on

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

ROM

A

Read-only Memory

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

EEPROM

A

Erasable Programmable Read-Only Memory

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

Firmware

A

Create some processes

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

System processes

A

Actives tasks or instances of programs, often initiated or interacted with by users

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

System daemons

A

Processes in the background, running at all times regarding of whether the user is executing something or not

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

Registers

A

A type of memory, very small but very fast

Smallest one on the cpu

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

Main memory

A

Much larger, relatively slow, every system needs to have it

CPU can load instructions only from memory meaning any programs to run must be stored there

17
Q

Secondary storage

A

Goes away when machine is switched off, magnetic disks, optical disks, tapes (external devices)

18
Q

Cache memory

A

Data that has been used a lot is cashed into a faster storage system

If the CPU is looking for information, cache is first checked

19
Q

Storage Structure

A
  • Memory is an array of bytes, each byte has its own address

Memory interaction via load/store instructions

20
Q

Load Instructions

A

Moves byte from main memory to an internal register within the CPU

21
Q

Store memory

A

Writing of a byte from CPU register to main memory

22
Q

Large portion of OS code dedicated to managing I/O devices

A

Without having any I/O devices you won’t be able to program or give anything from the outside world to the system and vice versa

23
Q

Local Buffer Storage

A

Temporary memory area within a system or device that is used to store data temporarily while it is being transferred between components, processed or waiting to be used.

24
Q

Device Driver

A

Typically downloaded

Whenever a user program wants to issue a command to a device, this will send the command to the OS.

The OS will give the command to the DD who will transfer this to the disk controller.

25
Q

I/O Mechanisms - Programmed I/O

A

Processor controls the I/O device, constantly test the status and transfer the data

26
Q

I/O Mechanisms - Interrupt Driven I/O

A

Tell the device to do an activity, and the device will announce the CPU once this is done. This allows the CPU to do some activity in the mean time.

Interrupt driven is fine for moving small amounts of data

Not really suitable for bulk data movement such as disk I/O

27
Q

I/O Mechanisms - Direct Memory Access

A

DMA - the controller transfers data directly from the I/O device to memory

  • No intervention by the CPU during the transfer
  • Only one single interrupt is generated, much better than one interrupt per byte, the CPU is freed up to do other perhaps more interesting tasks
  • Highly efficient for bulk or frequent transfers
28
Q

Single-processor system

A

One CPU

29
Q

Multiprocessor systems

A

more than one processors, share a number of resources i.e share bus clock memory and peripherals

benefit - if one processor or cpu does not work properly you can still make use of the remaining one, although the process might be slower it will still work (this is called graceful degradation)

30
Q

What is part of an operating system?

A

System Programs - Program loader, command interpreter

Language processors - C compiler, assembler, linker

Utilities - Text editor, terminal emulator

Subroutine libraries - Standard C library, maths library

31
Q

System Calls

A

A call you make to an operating system

Typically written in a high-level language (C or C++)

32
Q

Application Programming Interface

A

Specifies a set of functions that are available to an application programmer

Includes the parameters passed to each function

Also includes the return values that the programmer can expect

Output - number of bytes read, if successful
If -1 is a failure

33
Q
A
34
Q
A