A device-specific task inputs characters from these de­ vices and stores them in the input buffer for the Multi­ plexer to pick up.
For each output device, a task gets characters from the device's output buffer, where they were put by the Demultiplexer, and outputs them to its device.