13+14 Flashcards

1
Q

What is RAM and ROM?

A

ROM(Read only memory) is a special type of RAM which keeps its contents on power off.

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

Where to we store the value of the reset vector(and the location it branches too? Why? How?

A

In the ROM. This is done to ensure the value is there at power on. To do this we divide up the address space into ROM and RAM and then place the value in the ROM

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

What happens at Power-On:

A

interrupt vector in ROM set to branch somewhere else in ROM. Program does a power on self test, starts operating system(run program loaded from disk). Often the ROM will contain the BIOS (basic input output system). Remainder of address space is dedicated to RAM.

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

What is memory mapped IO?

A

Map the peripheral device to memory and then use it via the memory.

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

What is isolated I/O?

A

Use a seperate control line to control IO devices, using special IN and OUT instructions and writing contents of registers to I/O “ports”. This requires special hardware and instructions in the CPU, but saves memory space.

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

What is polled IO?

A

Check status register of each peripheral device, if data request bit set then read byte, check status register to see if finished. If busy bit is set then the device is finished, if not, read more bytes. This wastes a lot of CPU time.

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

What is a better solution than polling?

A

Interrupts, CPU is running a program, at end of each instruction it checks IRQ line. If signaled then: stop program, save state of CPU on stack, load value from ROM, jump to program (typically) in ROM, run that program. Restore the state of the CPU, continue with previous task.

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

How do we deal with multiple interrupts? How many interrupt vectors does the CPU need?

A

We could use multiple interrupt lines depending on urgency. The CPU only really needs one interrupt vector if it is connected to a device that multiplexes interrupts.
A software poll involves the CPU checking each status register bit. A Daisy chain involves the CPU sending an interrupt acknowledgement which propagates through each device until signalling device is reached, the device then places its interrupt handlers address on the data bus.

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

What is a non maskable interrupt?

A

A very important one, can’t be interrupted.

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

What is direct memory access?

A

DMA controller is told by CPU where to read from, where to write and how many bytes, then DMA controller does transfer, allowing CPU to only be involved at beginning and end, saving time

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

What is an operating system?

A

A program which acts as an intermediary between the hardware and user. It controls all the system’s resources, deciding how they are allocated.

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

What is the OS kernel?

A

The code running with the highest privilege in the machine, directly accesses hardware and handles service requests.

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

What is kernel and user space?

A

Kernel space is protected space where software can access any hardware. User space is non-privileged space meaning it must be permitted to use hardware by OS kernel.
The CPU can tell if software is run in kernel or user space via a bit in its status word (set on for interrupt or system call, set off if switched to non privileged software).

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

What is a process?

A

A program in execution.

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

What does storage cover? What is a file system?

A
primary storage(main memory), secondary storage(hard disk), tertiary storage(floppy disks, tapes, CDs) etc. 
The file system is the mechanism by which the user accesses/manipulates stored data in secondary storage.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the shell?

A

The program which the user interacts with the operating system through.

17
Q

What is spooling?

A

Perform I/O for one job, while the CPU is executing another job. This requires a secondary storage medim, a disk.

18
Q

What is the job pool? How does a multiprogrammed batch system work?

A

The pool of jobs needed to be done, if no special functionality is added the CPU will spend a lot of time idling. In a multiprogrammed batch system, several jobs are held in main memory. When one has to twait for I/O the operating switches the CPU to another job.

19
Q

What is a time sharing system?

A

multiprogramming can be applied to interactive programs(Non batch) as well, constantly switching between programs while they check for user input. This is known as a time-sharing, or multitasking system.

20
Q

What are parallel and distributed systems?

A

parallel operating system: multiple CPUs, sharing a common bus, clock, memory and devices.
Distributed: computation distributed among several processors.
These both lead to improvements in performance and reliability.

21
Q

What are real-time systems?

A

A Hard real-time operating system: guarantee jobs be completed within specified times. Soft real-time systems: some jobs have higher priorities than others.