codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  How to lock SDBM file when that file is writing by multiple programs at the same time  vasulu at 14:48 on Thursday, April 17, 2008
 

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








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  How to lock SDBM file when that file is writing by multiple programs at the same time
•  How to host C++ Web Service in Apache
•  Re: dynamic crystal report generation
•  XML Parsing Error
•  can anyone pinpoint the error.
•  how to create forum using asp.net with c# language?
•  Time Zone check in Java and PHP
•  calculating date using javascript
•  DataGrid


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008