OA>> I'll think about, but I don't think I'll change from semaphores just yet.
OA>> I don't like the idea of creating temp files for locks, and I can't lock

Actually, cleaning temp file is by far easier than cleaning semaphore.
Especially if your app can be killed any moment.

OA>> against an existing file, since I sometimes need to create several
OA>> different locks in the same application, and w/o creating files, this
OA>> mechanism would need to be way too complicated.

Why? Create one file and lock bytes 1, 2 and 3. BTW, semaphores are much
more scarce resource than files - they are system-wide and defaults are
pretty low on them.

-- 
[EMAIL PROTECTED]      \/  There shall be counsels taken
Stanislav Malyshev      /\  Stronger than Morgul-spells
phone +972-3-9316425    /\              JRRT LotR.
http://sharat.co.il/frodo/      whois:!SM8333


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to