UNIT 8 [cmsc 311]

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/16

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:52 PM on 4/1/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

17 Terms

1
New cards

Define privilege and priority.

Privilege determines whether a program can access restricted system resources, while priority determines the order in which processes are handled.

2
New cards

Difference between user mode and supervisor mode.

User mode restricts access to critical system resources, while supervisor mode allows full access to hardware and system memory.

3
New cards

What is the PSR?

The Processor Status Register (PSR) stores information about the current state of the processor, including condition codes (NZP), priority level, and privilege mode

4
New cards

User space vs system space.

User space is the portion of memory accessible to user programs, while system space is reserved for the operating system and cannot be accessed directly by user programs.

5
New cards

Why are there two stacks?

for user mode and supervisor mode to protect system operations and ensure security during interrupts or system calls.

6
New cards

What is memory-mapped I/O?

allows input and output devices to be accessed using memory addresses, so the CPU can interact with devices as if they were memory locations.

7
New cards

Purpose of KBDR and DDR.

KBDR stores data from the keyboard, while DDR stores data to be displayed.

8
New cards

Purpose of KBSR and DSR.

KBSR and DSR are status registers that indicate whether the keyboard or display device is ready for input or output.

9
New cards

Define polling.

a method where the CPU repeatedly checks a device’s status register to see if it is ready.

10
New cards

Why is polling inefficient?

because the CPU wastes time constantly checking devices instead of performing useful work.

11
New cards

Why does a user program need system calls?

to safely access hardware or perform privileged operations that are restricted in user mode.

12
New cards

What happens during a TRAP instruction?

the processor switches to supervisor mode, saves the current state, and jumps to a predefined system routine.

13
New cards

What happens during RTI?

restores the processor’s previous state and returns execution to the interrupted program.

14
New cards

Why are interrupts better than polling?

because the CPU only responds when a device signals it needs attention, rather than constantly checking.

15
New cards

Three conditions for an interrupt.

  • The device requests service

  • Interrupts are enabled

  • The device’s priority is higher than the current process

16
New cards

When does the processor check the INT line?

at the end of each instruction cycle.

17
New cards

What happens if INT is active?

the processor saves its state and transfers control to the interrupt service routine.

Explore top flashcards

flashcards
Cô Yến 5/12/2024
22
Updated 480d ago
0.0(0)
flashcards
EXAM 2 - part 6
22
Updated 250d ago
0.0(0)
flashcards
Einheit 1 Freunde
75
Updated 229d ago
0.0(0)
flashcards
Biology Honors Evolution
51
Updated 1096d ago
0.0(0)
flashcards
Matiekos egzas
73
Updated 819d ago
0.0(0)
flashcards
Livy 2.10 Vocab
20
Updated 1215d ago
0.0(0)
flashcards
Cô Yến 5/12/2024
22
Updated 480d ago
0.0(0)
flashcards
EXAM 2 - part 6
22
Updated 250d ago
0.0(0)
flashcards
Einheit 1 Freunde
75
Updated 229d ago
0.0(0)
flashcards
Biology Honors Evolution
51
Updated 1096d ago
0.0(0)
flashcards
Matiekos egzas
73
Updated 819d ago
0.0(0)
flashcards
Livy 2.10 Vocab
20
Updated 1215d ago
0.0(0)