Device Management (week 4) Flashcards

(39 cards)

1
Q

I/O systems are designed to handle_______ which are of many magnitudes __________ than the slowest CPU

A

I/O devices

slower

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

for efficient performance, there should be as much overlap as possible between the
operation of the ___________

A

I/O devices and the CPU

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

what is device manager

A

manages the collection of device driveres

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

what does the device manager do

A

manages the collection fo device drivers

makes it possible for the OS to then provide a standard set of system calls to application programs, which use the devices

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

what do device drivers do ?

A

A system call might mean different things to different devices. This system call has to be interpreted so that the devices can work. Devices drivers are used to interpret the system calls to ensure that the devices work properly.

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

device driver is the __________ module

A

device-dependent (comes with equipment you purchased)

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

device manager is the ________ module

A

device independent

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

what are the 3 categories of devices

A

block
character
network

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

storage devices are classified into 2 categories called

A

sequential

direct access

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

what is device status table

A

device status table is used by the device manager to keep track of the various devices

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

what information does the device status table contain

A

device id

device status (done, busy, idle)

queue of processing waiting for the device

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

what do programs which perform I/O operations expect

A

expect the IO operation to be completed before the next statement is executed

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

how can there be a performance gain

A

we can make the program execute instructions while the IO is taking place

this should be done without violating the serial execution order of the program

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

what is the main problem in trying to integrate many different devices into the computer system

A

different devices have different characteristics and thus require different methods to access or use.

To use these devices, application programs need to know every device’s characteristics and methods of access. This is not practically possible as new devices are produced all the time

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

How does the OS solve the problem of trying to integrate many different devices into the computer system

A

OS provides abstraction through its device manager which standardizes the interface required to use all the devices in each class. Application programs just need to know a standard device interface to use all the devices in that class. (FOR EG ALL TYPES OF SCANNERS ETC)

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

how to maximize the IO

A

to maximize the IO, the CPU can be used to operate on another process when the IO is busy with the original process.

this will increase the efficiency of the computer and reduce the overall time required to execute all the processes

17
Q

what are the 3 techniques used by the OS to optimize the use of devices

A

–> overlapping processing & IO operations
–> buffering
–> disk optimization

18
Q

how does buffering work

A

buffering allows the CPU to temporarily store/read data to/from memory when transferring data to/from devices. This allows the device controller to do the actual transfer when the CPU is doing other things,

19
Q

what is the difference between device driver and device controller

A

device driver is implemented at the software level

device driver is a software program that allows a device to communicate with the operating system

device controller is implemented at the hardware level

device controller is a hardware unit that acts as an interface between the device and the device driver

20
Q

what are the different types of buffering

A

input buffering
output buffering
hardware buffering
double buffering
circular buffering

21
Q

what is input buffering

A

copies the data into memory before the process requests it

22
Q

what is output buffering

A

temporarily stores the data in memory and have it written out to the device when the process resumes execution

23
Q

what is hardware buffering

A

Implements buffering in the hardware by having specialized registers to act as buffers. This is also known as cache

24
Q

what is double buffering

A

implement hardware buffering and having a separate buffer implemented at the software level

for eg using primary memory as a buffer

25
what is circular buffering
having a buffer which contains n number of locations. This incresased number of buffers allows for more data to be stored in the buffer circular buffering is the technique of managing these locations so that they can be reused
26
what are character devices
character based devices (tty/terminal) and serial based devices are where the data is handled one character or byte at a time
27
what are block type devices
block type devices such as hard drives transer data in blocks, typically a multiple of 256 bytes
28
________- and ________ are naming conventions for disk devices
sda, sda1
29
___________ and ________ are naming conventions for terminal devices or virtual consoles
tty0, tty1
30
what are types of randomly accessed memory devices
flash memory optical drives rotating magnetic disk floppy disk
31
what is sequentially accessed storage
magnetic tapes
32
what are the properties of randomly accessed storage devices
--> allows a driver to access blocks of data in the device in any order. Need not be sequential --> Non-volatile memory (such as USB memory devices) also falls in this category --> can easily be managed using a common api
33
Although disk based devices are random, we can improve on their efficiency using _____________________
disk optimization techniques
34
How can the effectiveness of disk based devices be increased ?
they can be increased in a multiprogramming environment where data blocks can be read from a large range of locations in the disk.
35
what is transfer time
Time to copy bits from disk surface to memory
36
what is Disk latency time
Rotational delay waiting for proper sector to rotate under R/W head
37
what is Disk seek time
Delay while R/W head moves to the destination track/cylinder
38
how to calculate Access Time
seek + latency + transfer
39
what are the 4 disk-based optimization techniques?
First-Come-First-Serve (FCFS) Shortest Seek Time First (SSTF) SCAN / C-SCAN LOOK / C-LOOK