Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

pipe

 
Ranch Hand
Posts: 635
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

A pipe consists of a pair of channels: A writable sink channel and a readable source channel.



May you give me example for this? writable sink
 
best scout
Posts: 1294
Scala IntelliJ IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Abalfazl,

it sounds more complicated than it is. Pipes in programming work very similar to pipes in real life - hence the name. Think of a water pipe for example. There's one end of the pip where the water goes in (you write "data" to it) and the other end of the pipe where the water flows out (you can read "data" from this end). In programming both "ends" of the pipe can often be used as two distinct channels.

If you're familiar with Linux you will probably know the pipes concept from the command line. You can often concatenate different commands with pipes. That means the output of one command "flows" through a pipe to the input channel of the next command in the chain.

Marco
 
We cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad:
The trailboss has a kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic