Quiz 5 - I/O and Basic OS Flashcards

1
Q

What type of IO allows the CPU to trigger an IO action and then go on to some other work?

A

Interrupt-driven IO

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

What are the categories for ?External Devices

A

Human Readable
Communication
Machine Readable

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

What are the techniques used for IO operations?

A

Programmed IO
Interrupt-driven IO
Direct Memory Access

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

What

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

What is the definition of the IO command “Control”?

A

Used to activate a peripheral and tell it what to do.

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

What is the definition of the IO command “Test”?

A

Used to test various status conditions associated with an I/O module and its peripherals

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

What is the definition of the IO command “Read”?

A

Causes the I/O module to obtain an item of data from the peripheral and place it in an internal buffer.

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

What is the definition of the IO command “Write”?

A

Causes the I/O module to take an item of data from the data bus and subsequently transmit that data item to the peripheral.

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

What is the IRA?

A

International Reference Alphabet

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

In IRA, how many bits are used to represent a single character?

A

7

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

Which hardware features below are desirable from the OS Standpoint?

A

Privileged Instructions
Timer
Memory Protection
Interrupts

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

What is Long-Term Scheduling?

A

Add to the pool of processes to be executed

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

What are the states below that are represented in the Five-State Process Model?

A

Blocked
Running
Exit
Ready

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

What is Short-Term Scheduling?

A

Which process will be executed

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

In which register will the result of the following instruction be left: and rax, rbx

A

rax

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

How many bits can be placed into EAX?

A

32

17
Q

Logical operations like and and or are performed on the data by what increment?

A

bit-by-bit

18
Q

What are the two portions of AX?

A

AH, AL

19
Q

What is the difference between imul and mul?

A

imul is signed, mul is unsigned

20
Q

inc/dec has the same effect as what other operation?

A

add/sub 1

21
Q

How many bits can be placed in AH?

A

8

22
Q

In which register will the result of the following instruction be left: imul rax, rbx, 42

A

RAX

23
Q

How many bits can be placed in AX?

A

16

24
Q

When using imul with a big result (64 bits), which register(s) will hold the results of the operation?

A

RDX and RAX