levo

Interrupts, Memory Management and Scheduling

Buffers and double buffering

  • 3 things to know
  • Component 2
Start revising · £5/month

Overview

How a buffer is used when reading from a disc, double buffering and buffer underrun.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What is a buffer?

Process

Why is a buffer needed between a processor and a printer?

Key term

Where is a printer buffer usually located?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is a buffer?

    Model answer

    A buffer is an area of memory that holds data temporarily as it moves between two devices. The buffer compensates for the difference in their speeds.

  2. 2

    Why is a buffer needed between a processor and a printer?

    Model answer

    The processor produces data far faster than the printer can put it onto paper. The buffer holds the waiting data so the processor need not stop.

  3. 3

    Where is a printer buffer usually located?

    Model answer

    A printer buffer is normally held in the memory of the printer itself. Part of main memory may also be reserved as a print queue.

  4. 4

    Explain how a buffer is used when reading from a disc.

    Model answer

    A whole block is read from the disc into a buffer in one operation. The program then takes the data from the buffer one record at a time.

  5. 5

    What happens when a buffer becomes full?

    Model answer

    The sending device is told to stop until space has been freed. Data would otherwise be overwritten and lost.

  6. 6

    What happens when a buffer becomes empty?

    Model answer

    The receiving device signals with an interrupt that it needs more data. The operating system then refills the buffer from the source.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Data Structures: Arrays, Records and Hash Tables
Stacks, Queues, Linked Lists and Trees
Boolean Logic and Simplification
Algorithms, Pseudo-Code and Programming Constructs

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

KDW to HAT.
decryptsencryptscompresses

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

Backup means the copy of the data.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Interrupts, Memory Management and Scheduling, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.