Ask a Question related to PERL Modules, Design and Development.
-
badarisj@gmail.com #1
Any experiences with LockFile::Simple module?
folks,
for handling concurrency related issues i wanted to hear about
experiences of others using the LockFile::Simple (or similar modules)
especially if they ran into problems using the module.
please let me know.
thanks,
-badari
badarisj@gmail.com Guest
-
Newb Needs Help with Simple ImageMagick Module
I am totally new to ImageMagick and am banging my head on this one. (I am also a bit weak when it comes to OOP) I need a PERL script that reads... -
Expect.pm module help - simple question...
I am playing around with the Expect module and have been looking at the docs, but am confused as to why my code does not send the "ls" to the... -
New module proposal FDF::Simple
Hi! We developed a module currently called FDF::Simple. It can read and write FDF files into/from hashes. It is meant to be a simple replacement... -
Issue with ASP/IIS and remaining Access 2K lockfile .ldb
"Immanuel" <wetteraar@hotmail.com> wrote in message news:2791C693-262A-4CBC-A382-5462D169167E@microsoft.com... which in turn manages connection... -
simple module
Hi all, i am new to OO programming in Perl. Can someone suggest a simple Object Oriented Perl module thru which i can read thru and practice? i... -
nickelstat@sbcglobal.net #2
Re: Any experiences with LockFile::Simple module?
I do not have that specific module, but I do have some strong ideas
about locking and synchronization.
If the module creates a file, and relies on the locking process to
unlock/remove it, then I wouldn't use it.
The problem is that if your application dies, either core-dumps, or
gets killed externally, or even killed by your own code *and you forgot
to remove the lockfile*, then everybody thinks that the locking program
is still using it. Which is false.
What you need is a mechanism that insures that the lock is removed the
same time a process is killed. The only way I see that happening is not
in the code, but in the Operating System.
I would use a kernel semaphore, or a socket for example.
nickelstat@sbcglobal.net Guest
-
badarisj@gmail.com #3
Re: Any experiences with LockFile::Simple module?
good analysis.
that is why, we want to wrap LockFile::Simple around to provide
stuff like auto-magic lock removals when signals like HUP, TERM, QUIT
are recieved. so that problem of left-over locks should be less painful
that way.
the problem with semaphores etc is with the portability etc; not all
platforms
support the same semaphore capabilities etc. from that respect, the
simple
strategy of LockFile::Simple would be attractive...
thanks,
-badari
badarisj@gmail.com Guest



Reply With Quote

