You want to input a string of about 20 characters. Explain how the I/O will be performed if
(i) Programmed Input/Output is used; and
(ii) Interrupt Driven Input/ Output Scheme is used. Explain the need of Direct Memory Access using an example.
**(i) Programmed Input/Output:**
In the programmed input/output (I/O) scheme, the CPU is responsible for controlling the data transfer between the peripheral devices (such as keyboards, displays, disks) and the main memory. The CPU issues commands to read or write data, and it waits for the I/O operation to complete before proceeding with other tasks. The CPU continuously polls the I/O device's status to determine when the transfer is done.
Process of Programmed I/O for Input (Read Operation):
1. CPU sends a command to the input device (e.g., keyboard) to read data.
2. CPU waits and periodically checks the device's status.
3. When the device has data ready, the CPU reads the data from the device.
4. CPU stores the data in memory or processes it.
Process of Programmed I/O for Output (Write Operation):
1. CPU sends a command to the output device (e.g., display) to write data.
2. CPU waits and periodically checks the device's status.
3. When the device is ready to accept data, the CPU sends the data to the device.
4. CPU continues with other
______ ____ ____ ______ _________ _________ _______ _____ _______ __________ ________.
________ _____ _____ ____ ___ ___ ___ _______.
______ ________ ___ __________ ____ ____ _________ ______ ____ _____ ____.
___ ___ _____ ________ _____.
_________ ________ _____ ____ _________ _______ _______ ______ ______ ______ _______.
____ _____ ___ ______ _______ ______ ___ _____ _____.
___ ________ ___ _____ __________ _______ ___ _________.
____ _______ ___ ______ _____ _______ _______ _________ ____ ___.
________ ___ ________ _________ ___ _____ __________ ___ ___ _____ ________.
________ ______ ________ ________ ________ ________ ______ ________ _______ _____ ___.
______ ________ _______ _________ _________ ______ _____.
__________ ________ _________ ____ ________ _________ _________ __________ _______.
___ ________ _____ _______ ___.
________ _________ ________ _________ _______ _____ __________ _______ _________.
__________ ____ __________ ________ _________ ____ ___ __________ ___ _________ _____ ___.
_______ __________ ___ _______ ___ _______.
______ ______ _____ ______ ___ _______ ____ ________ ______ _______ _____.
________ ___ ____ __________ ______ ___ _______ _________ ___ ________.
_______ _______ ________ ____ ________ _______ _____ _________ __________ _______.
___ ____ ____ _________ _________ _______ _____.
___ ________ _________ _______ ______ _____ _______.
_____ __________ __________ ___ _____ ____ __________ _________ _________ ________.
_______ ________ _________ _______ _______ _________ __________ _____ ______ _______ _______.
____ _________ ____ __________ __________ ___ __________ _____ _____ _______.
_______ ________ __________ ______ ___ _______.
____ ____ ___ ______ ____ _________ ________ ___.
___ ________ ______ _______ _______ ____ _________ ________.
________ ______ _______ ____ ________ ____ ______ _______ _________.
____ ________ ______ __________ _________ ____.
_______ _____ _______ _____ ________ ________ ___ _________.
________ __________ __________ ___ _________ _________ ____ _______ _____ ________ ___ ________.
________ __________ ________ ________ _________ _____ _______ __________ ________.
____ ______ ______ ___ _______ ______ ___ ____.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
✓ Unlock up to 60% of the answer
✓ No payment required