Module 2 Flashcards

(55 cards)

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

24
Q

extension of main memory that has
large nonvolatile storage capacity

A

Secondary storage

25
rigid metal or glass platters covered with magnetic recording material.
Magnetic disks
26
examples are Tape drives and Cloud backups
Tertiary Storage
27
Storage systems are organized in a hierarchy based on:
Speed Cost Volatility
28
process of copying information into faster storage system; main memory can be viewed as fast cache for secondary storage
Caching
29
Storage Device Hierarchy
registers -> cache -> main memory -> electronic disks -> magnetic disk -> optical disk -> magnetic tape
30
4 Hardware Protection
Dual Mode Operation I/O Protection Memory Protection CPU Protection
31
Sharing system resources requires operating system to ensure that an incorrect program cannot cause other programs to execute incorrectly
Dual-mode operation
32
two modes of operation
User mode Monitor mode (supervisor/kernel/system mode)
33
execution done on behalf of a user
User mode
34
execution done on behalf of operating system
Monitor mode (supervisor/kernel/system mode)
35
These instructions are used for system-critical operations and are restricted to prevent unauthorized access by user programs.
Privilege Instruction
36
Examples of Privileged Instructions
Interrupt Handling Modifying System Control Registers Changing CPU Mod
37
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
I/O Protection
38
Must provide memory protection at least for the interrupt vector and the interrupt service routines
Memory Protection
39
interrupts computer after specified period to ensure that OS maintains control
Timer
40
Given the I/O instructions are privileged, how do users perform I/O?
Via system calls
41
the method used by a process to request action by the operating system
system calls
42
Interface between running program and the OS.
System Calls
43
Operating Systems: How are they organized?
Simple Layered Microkernel Modular
44
Only one or two levels of code
Simple
45
Lower levels independent of upper levels
Layered
46
OS built from many user-level processes
Microkernel
47
Core kernel with Dynamically loadable modules
Modular
48
4 Types of Kernel
Monolithic Kernel Microkernel Hybrid Kernel Exokernel
49
Entire OS runs as a single program in kernel mode (Example: Linux, Unix)
Monolithic Kernel
50
Only essential functions (process management, memory management) are in the kernel, while others run as separate user-space services (Example: Minix, QNX)
Microkernel
51
Combines elements of monolithic and microkernels. (Example: Windows NT, macOS)
Hybrid Kernel
52
Minimally manages resources, allowing applications to control hardware directly. (Example: MIT Exokernel)
Exokernel
53
provides a lot of functionality in little space.–Not divided into modules, Interfaces and levels of functionality are not well separated
MS-DOS
54
limited structuring, has 2 separable parts -Systems programs -Kernel
UNIX
55
Moves as much from the kernel into “user” space
Microkernel Structure