CodeToad Forums » Perl » How to lock SDBM file when that file is writing by multiple programs at the same time
|
|
|
Hi,
In my case i am updating same SDBM file at the same time by executing multiple programs. In my programs i am using tie function.
Here is the code.
$db = tie(%FILE_NAMES, 'SDBM_File', $tName, O_RDWR|O_CREAT, 0666)
Here i need to put one lock to avoid dead lock situation.
Thanks,
vasulu
|
|
|
|
|
|
|
// |