You get a bonus - 1 coin for daily activity. Now you have 1 coin

Data stream

Lecture



Data flow (eng. Stream ) in programming is an abstraction used to read or write files, sockets, etc. in a single manner.

Streams are a convenient unified software interface for reading or writing files (including special and, in particular, connected devices), sockets and transferring data between processes.

Support for threads is included in most programming languages ​​and almost all modern (for 2008) operating systems.

When the process starts, it is provided with predefined standard streams.

The ability to redirect threads allows you to link various programs, and gives the system flexibility, which is part of the Unix philosophy.

Data flow in programming

Thread abstraction is especially important in the C programming language, where it represents the source of input and / or output of data, usually bytes, associated with a file, device, or other process. Work with threads has been moved to many other languages:

  • C ++: iostream from the standard C ++ library.
  • .NET Framework languages ​​(for example, C #): Base Class Library, System.IO namespace.

Data flow in operating systems

Data stream
An example of a chain of processes communicating using data streams.

The UNIX command shell intensively uses thread abstraction to share several utilities together.

Notes

See also

  • Standard streams
  • Wrapper
  • Named Channel
  • Bit stream

Comments


To leave a comment
If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Operating Systems and System Programming

Terms: Operating Systems and System Programming