Re: Garbage Collection - The Trash Begins To Pile Up
Le Chaud Lapin wrote:
Zeljko Vrba wrote:
"Le Chaud Lapin" <jaibuduvin@gmail.com> writes:
Someone mentioned recently that system-wide named objects have
relatively recently found their way into Linux. This, IMO, is a great
example where someone, somewhere, thought long and hard and realized
that you probably need that.
I'm not sure whether you're being sarcastic here because system-wide named
objects have existed for a long time on SYSV-derived unixes: shared memory,
semaphores and message queues. (Are you talking about other kinds of
objects?) The only thing is that the "name" is a number, not a path name.
Message queues being both communication _and_ synchronization mechanism.
No not being sarcastic. I write entirely in Windows today, so I am not
up to date on what Unix has.
No need to be up to date. They've been present at least since
the 1980's (when I first learned them).
They're relatively little used today (except for named pipes),
because you also need a means of sharing the data they protect;
it's much simpler to put both the data and the Posix structures
(pthread_mutex_t or whatever) in a (named) file, and mmap it.
In fact, most of Windows functionality has been copied from
older Unices (including some of the bad parts); for better or
for worse, there is more or less a consensus as to what is
needed. (Better, from the point of view of standardization,
since standardization requires a consensus; worse, perhaps from
a technical point of view, although globally, it does work for
certain categories of applications.)
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient?e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S?mard, 78210 St.-Cyr-l'?cole, France, +33 (0)1 30 23 00 34
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]