From c53c3cb4b83a3b3a659717333cd59b002914b3e1 Mon Sep 17 00:00:00 2001 From: mo khan Date: Sun, 2 May 2021 21:49:01 -0600 Subject: expand on an answer --- doc/assignment3.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc') diff --git a/doc/assignment3.md b/doc/assignment3.md index 2d05ed5..4d9a207 100644 --- a/doc/assignment3.md +++ b/doc/assignment3.md @@ -291,6 +291,18 @@ Your answer for each question should be about 150 words. (100 marks total) 1. To provide adaptations for devices that have different data-transfer sizes. 1. To support copy semantics for application I/O. + If the device that is sending the data is sending it faster than the device that is + receiving that data can consume it, than a buffer in between the two helps to ensure + that data can travel smoothly from the faster device to the slower one without problems. + + If one device sends data in chunks that are different from the size of chunks that a + receiving device can process. Then a buffer can be used to accept chunks of data in + one size and send them to another device using a different size of chunks. + + A buffer can also provide a simpler application programming interface between user + programs and the operating systems. A buffer decouples the two and can be used + to handle the needs of each while maintaing a simple interface for both to work with. + ## Sources * [Operating System Concepts][os-book] -- cgit v1.2.3