Sujet : Re: The joy of pipes
De : tnp (at) *nospam* invalid.invalid (The Natural Philosopher)
Groupes : comp.os.linux.miscDate : 18. Nov 2024, 18:47:34
Autres entêtes
Organisation : A little, after lunch
Message-ID : <vhfujm$1bub8$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
User-Agent : Mozilla Thunderbird
On 18/11/2024 17:04, Pancho wrote:
On 11/18/24 13:45, The Natural Philosopher wrote:
On 18/11/2024 11:05, Pancho wrote:
I do remember looking at named pipes and deciding it was appropriate for some task, but I have no memory of actually implementing it. Which could mean it just worked and I never thought about it again, or it could mean I didn't do it.
>
Similar here.
I've tended to use ramdisk files ... for interprocess communication. Not idiot proof, but can be made fit for purpose.
>
I guess simpler than shared memory sections.
A ram disk IS effectively a shared memory section.
But with well known ways to access it - and well known issues about race conditions if two+ processes try to write to it
In the end the issues are just the same, only the coding and sometimes access speed is different.
One of my golden rules of programming was - show me some RAM and I will squander it on a cache. :-) Although, my crime was mainly in memory databases.
RAM space has never ever been as problem for me when using low level languages.
-- Renewable energy: Expensive solutions that don't work to a problem that doesn't exist instituted by self legalising protection rackets that don't protect, masquerading as public servants who don't serve the public.