Sujet : Re: The joy of pipes
De : 186283 (at) *nospam* ud0s4.net (186282@ud0s4.net)
Groupes : comp.os.linux.miscDate : 16. Nov 2024, 09:03:00
Autres entêtes
Organisation : wokiesux
Message-ID : <_dWdnU6ogs1XzKX6nZ2dnZfqnPWdnZ2d@earthlink.com>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
On 11/16/24 1:16 AM, rbowman wrote:
On Sat, 16 Nov 2024 00:37:35 -0500, 186282@ud0s4.net wrote:
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 !
Message queues and shared memory are handy for IPC too. I don't think
Microsoft ever figured either out. What they call message queues are
completely different.
Whatever M$ does ... well ....... always seems
to be FUCKED somehow.
Anyway, pipes are VERY useful. Anybody getting into 'C',
esp multi-threaded/process, needs to get very familiar
with them. Even in 'C' they're still kinda awkward
alas. Somebody had The Idea, but nobody seems to have
made it smooth and consistent across multiple languages
and systems.
My old server experiments, each child returned stats
back to the root parent while it was running. Under
certain conditions the parent would do things - maybe
terminate the child or connection or do a timer
process. Did work up to a fairly compact UDP bi-di
pre-threaded server. Never found a great use for it,
but it was fun and maybe someday .......