Module 2 Flashcards

1
Q

Computer System Architecture

A

System Bus (Memory Controller -> Memory) -> CPU -> Disk Controller -> Printer Controller -> Tape-drive Controller

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

Execution Sequence

A

Fetch -> Decode -> Execute - > Write results -> PC -> Repeat

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

____ and ____ execute concurrently

A

I/O devices, CPU

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

each _____ has a local buffer

A

device controller

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

_____ moves data from/to main memory to/from the local
buffers

A

CPU

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

_______ interrupts CPU on completion of I/O

A

device controller

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

is a signal to the processor indicating an event that needs immediate attention

A

interrupt

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

Interrupt handling process:

A
  • The processor stops current execution
  • Saves state/context
  • Transfers control to an interrupt handler
  • Resumes execution after handling
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

transfers control to the interrupt service routine

A

Interrupt

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

segments of code that determine
action to be taken for each type of interrupt

A

Interrupt Service Routine

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

contains the address of service routines

A

Interrupt vector

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

software generated interrupt caused either by an error or a
user request

A

Trap

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

Types of interrupt

A

Polling
Vectored interrupt system

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

refers to the process by which a program or system continuously checks the status of a device or
resource at regular intervals to determine if it requires attention.

A

Polling

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

is a mechanism in computer systems where interrupts are handled using a specific address (vector) associated with the interrupt source

A

Vectored interrupt system

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

Incoming interrupts are disabled while another interrupt is
being processed to prevent a _____

A

lost interrupt

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

2 I/O Structures

A

Synchronous I/O
Asynchronous I/O

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q
  • wait instruction idles CPU until next interrupt
  • no simultaneous I/O processing, at most one outstanding I/O request at a time
A

Synchronous I/O

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

after I/O is initiated, control returns to user program without waiting for I/O completion.

A

Asynchronous I/O

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

holds type, address and state for
each device

A

Device Status table

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

Used for high speed I/O devices
able to transmit information at
close to memory speeds

A

Direct Memory Access (DMA)

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

3 Storage Structure

A

Main memory
Secondary storage
Tertiary Storage

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

only large storage media that the CPU can access directly

A

Main memory

24
Q

extension of main memory that has
large nonvolatile storage capacity

A

Secondary storage

25
Q

rigid metal or glass platters covered with magnetic recording material.

A

Magnetic disks

26
Q

examples are Tape drives and Cloud backups

A

Tertiary Storage

27
Q

Storage systems are organized in a hierarchy based on:

A

Speed
Cost
Volatility

28
Q

process of copying information into faster storage system; main memory can be viewed as fast
cache for secondary storage

29
Q

Storage Device Hierarchy

A

registers -> cache -> main memory -> electronic disks -> magnetic disk -> optical disk -> magnetic tape

30
Q

4 Hardware Protection

A

Dual Mode Operation
I/O Protection
Memory Protection
CPU Protection

31
Q

Sharing system resources requires operating system to ensure that an incorrect program cannot cause other programs to execute incorrectly

A

Dual-mode operation

32
Q

two modes of operation

A

User mode
Monitor mode (supervisor/kernel/system mode)

33
Q

execution done on behalf of a user

34
Q

execution done on behalf of operating system

A

Monitor mode (supervisor/kernel/system mode)

35
Q

These instructions are used for system-critical operations
and are restricted to prevent unauthorized access by user
programs.

A

Privilege Instruction

36
Q

Examples of Privileged Instructions

A

Interrupt Handling
Modifying System Control Registers
Changing CPU Mod

37
Q

Must ensure that a user program could never gain
control of the computer in monitor mode, for e.g. a user
program that as part of its execution, stores a new
address in the interrupt vector

A

I/O Protection

38
Q

Must provide memory protection at
least for the interrupt vector and the interrupt service routines

A

Memory Protection

39
Q

interrupts computer after specified period to ensure that OS maintains control

40
Q

Given the I/O instructions are privileged, how do users
perform I/O?

A

Via system calls

41
Q

the method used by a process to request action by the operating system

A

system calls

42
Q

Interface between running
program and the OS.

A

System Calls

43
Q

Operating Systems: How are they organized?

A

Simple
Layered
Microkernel
Modular

44
Q

Only one or two levels of code

45
Q

Lower levels independent of upper levels

46
Q

OS built from many user-level processes

A

Microkernel

47
Q

Core kernel with Dynamically loadable modules

48
Q

4 Types of Kernel

A

Monolithic Kernel
Microkernel
Hybrid Kernel
Exokernel

49
Q

Entire OS runs as a single program in kernel mode (Example: Linux, Unix)

A

Monolithic Kernel

50
Q

Only essential functions (process management, memory management) are in the kernel, while others run as separate user-space services (Example: Minix, QNX)

A

Microkernel

51
Q

Combines elements of monolithic and microkernels. (Example: Windows NT, macOS)

A

Hybrid Kernel

52
Q

Minimally manages resources, allowing applications to control hardware directly.
(Example: MIT Exokernel)

53
Q

provides a lot of functionality in little space.–Not divided into modules, Interfaces and levels of
functionality are not well separated

54
Q

limited structuring, has 2 separable parts
-Systems programs
-Kernel

55
Q

Moves as much from the kernel into “user” space

A

Microkernel Structure