![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mutex in Perl | superuser84 | Shell Programming and Scripting | 6 | 11-13-2007 12:55 AM |
| what is diff b/w semaphore and mutex | amitpansuria | UNIX for Dummies Questions & Answers | 1 | 08-21-2007 02:45 AM |
| how to lock keyboard without using lock command | dianayun | UNIX for Dummies Questions & Answers | 7 | 06-21-2002 07:05 PM |
| mutex | sagar | UNIX for Dummies Questions & Answers | 2 | 02-04-2002 06:00 PM |
| Threads and Mutex | vthasan | High Level Programming | 2 | 11-02-2001 07:34 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to handle mutex lock?
Hi, I have two tasks 'Read' and 'Write' which reads and writes on a file "abc.txt" respectively.
Now I need to restrict the Write operation on the file while Read is going on, But can allow two Reads at a time. ie. two Reads can happen simultaneously, but Write can't happen at Read is going on. I can do this by using Mutex lock which can lock the file at the start of Read and release after completion of Read, But by doing this the second Read will also won't get access to the file. Can anybody have idea, how to handle this? Thanks in advance. Cheers |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|