encyclopegia.org

FIFO (computing and electronics)

In computing and in systems theory, first in, first out (the first in is the first out), acronymized as FIFO, is a method for organizing the manipulation of a data structure (often, specifically a data buffer) where the oldest (first) entry, or "head" of the queue, is processed first.[src] FIFOs are used for a wide variety of applications.[src] Depending on the application, a FIFO may be implemented in hardware as an electronic logic circuit, or in software.[src]

In computing and in systems theory, first in, first out (the first in is the first out), acronymized as FIFO, is a method for organizing the manipulation of a data structure (often, specifically a data buffer) where the oldest (first) entry, or "head" of the queue, is processed first.[src] FIFOs are used for a wide variety of applications.[src] Depending on the application, a FIFO may be implemented in hardware as an electronic logic circuit, or in software.[src] ==Applications== FIFOs are used extensively, in a wide variety of applications.[src] For example, disk controllers use a FIFO as a disk scheduling algorithm to determine the order in which to service disk I/O requests.[src] Communication network bridges, switches and routers used in computer networks use FIFOs to hold data packets en route to their next destination; typically at least one FIFO is used per network connection.[src] FIFOs are used in operating system scheduling to give every process central processing unit (CPU) time in the order in which it is demanded.[src] FIFOs are used to buffer digital video and audio streams, to facilitate the exchange of stream data between software or hardware (or both) that would otherwise have incompatible data rates.[src] ==Software FIFO== Software FIFOs typically are based on a circular buffer or list structure.[src] Most software implementations are not thread safe and require a locking mechanism to ensure the data structure chain is being manipulated by only one thread at a time.[src] In computing environments that support the pipes-and-filters model for interprocess communication, a FIFO is another name for a named pipe.[src] ===C++ language example=== The following code shows a linked list FIFO C++ language implementation.[src] In practice, a number of list implementations exist, including popular Unix systems C sys/queue.h macros or the C++ standard library std::list template, avoiding the need for implementing the data structure from scratch.[src] include include using namespace std; template class FIFO { struct Node { T value; shared_ptr next = nullptr; Node(T _value): value(_value) {} }; shared_ptr front = nullptr; shared_ptr back = nullptr; public: void enqueue(T _value) { if (front == nullptr) { front = make_shared (_value); back = front; } else { back->next = make_shared (_value); back = back->next; } } T dequeue() { if (front == nullptr) throw underflow_error("Nothing to dequeue"); T value = front->value; front = move(front->next); return value; } }; ==Electronic FIFO== D485505g-25) Electronic FIFOs are commonly used for buffering and flow control between hardware devices or between software and hardware devices which, over finite intervals, operate at different data rates.[src] A FIFO consists of two counters that serve as read and write memory address registers, a memory array, and status and control logic.[src] The memory typically is dual-ported to allow concurrent FIFO read and write operations, and consists of a register file or dual-ported RAM (random access memory).[src]

19 sentences · 19 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"FIFO (computing and electronics)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/fifo-computing-and-electronics. Accessed 30 November 2026.

Chicago

"FIFO (computing and electronics)." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/fifo-computing-and-electronics.

APA

encyclopegia.org. (2026). FIFO (computing and electronics). Retrieved November 30, 2026, from https://encyclopegia.org/wiki/fifo-computing-and-electronics

Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1372397809 · 0.5 · snapshot enwiki-001372397809

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.