Any experiences with LockFile::Simple module?

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139