levo

Interrupts, Memory Management and Scheduling

Buffers and double buffering

  • 3 things to know
  • Component 2

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.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

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

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

KDW to HAT.
decryptsencryptscompresses

Blank Blitz makes facts automatic

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

AThe two are not the same.
BOpen source refers to the availability of the code.
CMuch open source software is free of charge.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

Backup means the copy of the data.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

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.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

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