Jump to content

Stream (computing)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by DancingHacker (talk | contribs) at 04:54, 24 August 2007 (dataflow language has been renamed to dataflow programming). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
The standard streams for input, output, and error

In computing, the term stream is used in a number of ways, in all cases referring to a succession of data elements made available over time.

  • On Unix and related systems based on the C programming language, a stream is a source or sink of data, usually individual bytes or characters. Streams are an abstraction used when reading or writing files, or communicating over network sockets. The standard streams are three streams made available to all programs.
  • Pipelines can also be understood as streams as well as any unlimited (non-packaged) information that is inserted by a device.
  • In the Scheme programming language and some others, a stream is a lazily evaluated or delayed sequence of data elements. A stream can be used similarly to a list, but later elements are only calculated when needed. Streams can therefore represent infinite sequences and series. [1]
  • Stream processing — in parallel processing, especially in graphic processing, the term streams is applied to hardware as well as software. There it defines the quasi-continuous flow of data which is processed in a dataflow programming languages as soon as the program state meets the starting condition of the stream. Hence the pure hardware description of a stream computer is explained in HiDISC - Hierarchical Decoupled Instruction Stream Computer
  • Filesystems can store multiple named independent streams against a single filename. There is one main stream which makes up the normal file data. Additional streams can used to store icons, summary and indexing information, zone information (ie where the file was downloaded from) etc. Microsoft's API is explained at MSDN
  • Any other continuous flow of data may also be a stream, i.e. a stock ticker or the intercepted traffic of a numbers station can be considered to be a stream, regardless of of the nature of the data source.
  • Streams (networking API)

See also