69.8k views
5 votes
In which of the four I/O software layers is each of the following done. (a) Computing the track, sector, and head for a disk read. (b) Writing commands to the device registers. (c) Checking to see if the user is permitted to use the device. (d) Converting binary integers to ASCII for printing.

2 Answers

3 votes

Final answer:

The track, sector, and head for a disk read are computed in the Device-Independent Layer of the I/O software. Writing commands to the device registers is done in the Device-Dependent Layer. Checking user permission and converting binary integers to ASCII for printing are both handled by the Device-Independent Layer as well.

Step-by-step explanation:

(a) Computing the track, sector, and head for a disk read is done in the Device-Independent Layer of the I/O software, also known as the Logical I/O Layer. This layer is responsible for converting logical I/O requests from higher layers into physical I/O requests that the device can understand.

(b) Writing commands to the device registers is done in the Device-Dependent Layer of the I/O software, also known as the Device Driver Layer. This layer interacts directly with the specific hardware device and is responsible for controlling the device and communicating with it.

(c) Checking to see if the user is permitted to use the device is done in the User Level I/O Software Layer. This layer handles access control, security permissions, and user-specific I/O operations.

(d) Converting binary integers to ASCII for printing is done in the Device-Independent Layer of the I/O software. This layer handles the conversion of data between the internal binary representation used by the computer and the desired format for input/output operations.

User Will Parzybok
by
4.4k points
4 votes

Answer:

a. Device drivers.

b. Device drivers.

c. Device-independent OS software.

d. User level software.

Step-by-step explanation:

A software can be defined as a set of executable instructions (codes) or collection of data that is used typically to instruct a computer on how to perform a specific task and solve a particular problem. Thus, it's a computer program or application that comprises of sets of code for performing specific tasks on the system.

The four (4) input-output (I/O) software layers includes the following;

I. Interrupt drivers (handlers): it is responsible for handling interruptions that occur while using a software on a computer system.

II. Device drivers: it controls the input-output (I/O) devices that are connected to a computer system through a wired or wireless connection.

III. Device-independent OS software: it allows for uniform interfacing and buffering for device drivers.

IV. User level software.

Some of the functions of the input-output (I/O) software layers are;

(a) Device drivers: computing the track, sector, and head for a disk read.

(b) Device drivers: writing commands to the device registers.

(c) Device-independent os software: checking to see if the user is permitted to use the device.

(d) User level software: converting binary integers to ASCII for printing.

User Orange Lux
by
4.2k points