[clug] Semaphores and shared memory
Jepri
jepri at webone.com.au
Wed Dec 10 07:59:40 GMT 2003
Martin Pool wrote:
>It's somewhat portable.
>
>But really, mutexes and SysV IPC are pretty deprecated on Linux. For
>example, they aren't automatically cleaned up if your program
>terminates, and they use a wierd non-filesystem naming scheme. Just
>lock the file, or parts of it.
>
>See tdb in samba cvs for a good example.
>
>
>
I'll do it the file locking way, it does sound better and less complicated.
Purely out of curiousity, where should I have gone to find this out?
Nothing I've read about semaphores suggested that they were old news, so
I thought they were still a good idea.
More information about the linux
mailing list