Deutsch English Français Italiano |
<kaOcndi2KbU9sqX6nZ2dnZfqnPSdnZ2d@earthlink.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 16 Nov 2024 05:37:36 +0000 Subject: Re: The joy of pipes Newsgroups: comp.os.linux.misc References: <vgns2aqlhq@dont-email.me> <20241112111426.00007245@gmail.com> <e44df1bda1f1622a8d725c69860d3225@msgid.frell.theremailer.net> <m2ttc9y3d8.queerchen@cmschueller.my-fqdn.de> <eli$2411141855@qaz.wtf> <20241114160907.0000252b@gmail.com> <vh6a9k$33c17$5@dont-email.me> <hzSdnTUBKbG_YKv6nZ2dnZfqnPQAAAAA@earthlink.com> <A7GZO.66$hgYd.23@fx41.iad> From: "186282@ud0s4.net" <186283@ud0s4.net> Organization: wokiesux Date: Sat, 16 Nov 2024 00:37:35 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <A7GZO.66$hgYd.23@fx41.iad> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Message-ID: <kaOcndi2KbU9sqX6nZ2dnZfqnPSdnZ2d@earthlink.com> Lines: 48 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 99.101.150.97 X-Trace: sv3-ufU1yjJSInxlj7hBnKz33dQGyCDJ/ZH4ca2rDYPeg5doJOUKPIHtdyUVrsHW68FpSIc/6eDDS/Lq8Bq!rIQnWcRgvxZPUA7ViOH4jmIktyB7IxI5NpRJVR1+vTkOrN3yv+foW+puho543az4vOdhN9mHC2/P!wcRjmjea8WKApF3VSrKp X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Bytes: 3271 On 11/15/24 6:20 AM, Louis Krupp wrote: > On 11/15/2024 12:49 AM, 186282@ud0s4.net wrote: >> On 11/14/24 9:05 PM, Lawrence D'Oliveiro wrote: >>> On Thu, 14 Nov 2024 16:09:07 -0800, John Ames wrote: >>> >>>> (I think it was a topic shift to applications of *nix pipes...?) >>> >>> Oh shelly boy, the pipes, the pipes are calling ... >> >> Pipes are good. >> >> But, really, they're just temp files the parent >> process can access. > > Pipes *could* be implemented with temporary disk files, at least to an > extent, but as far as I can tell, they're not. Well, they can be on ACTUAL disk space - or on a RAMdisk or just a reserved stretch of RAM. The last one is quickest - but most taxing on run-time resources. > Quoting from this page: > > https://www.geeksforgeeks.org/piping-in-unix-or-linux/# > > In Linux, a pipe is not a regular file but a type of inter-process > communication (IPC) mechanism that acts as a buffer, which can be > used to connect the output of one process to the input of another. > Although pipes are not files, they are implemented using file > descriptors and share many behaviors with files. They exist only in > memory and do not have a presence in the file system, unlike regular > files. There are clearly a lot of ways to implement "pipes". 'C' does it the 'C' way. IF you are doing multi-threaded/process style pgms then you almost HAVE to use them if you want to xmit more than a few bytes between parents/children. A few years back I was experimenting with TCP/UDP servers and found that it could be very useful to transmit a few dozen bytes worth of active data between parents/children. SO ... learn yer pipes !