Generalize the result of Problem 11.1 to the case in which a program refers to n devices.
Problem 11.1
Consider a program that accesses a single I/O device and compare unbuffered I/O to the use of a buffer. Show that the use of the buffer can reduce the running time by at most a factor of two.