![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PRo*C program for SQL queries using threading concept | user71408 | UNIX for Dummies Questions & Answers | 0 | 05-21-2008 02:11 AM |
| LUN concept | Prem | HP-UX | 1 | 02-22-2007 05:02 PM |
| Having difficulty with UNIX concept. Please help! | ALon | UNIX for Dummies Questions & Answers | 4 | 01-11-2007 11:42 AM |
| IPTABLES Firewall concept help | Bradley Porter | UNIX for Dummies Questions & Answers | 1 | 01-02-2007 05:39 AM |
| concept of mount point | Vikas Sood | UNIX for Dummies Questions & Answers | 3 | 06-08-2006 06:31 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
semaphore concept
Hi All,
I am going through the semaphore concept and have a doubt regarding the same and hope to get a resolution here. I have a file which has a number of records. I want to write an application (in C) which will be able to do concurrent read/write on these records. Of what I have understood about semaphores, I know that a process can obtain a lock on the critical section of code, read/write into records, then release the lock so the other processes waiting to access the data can obtain a lock. I am confused and tend to think that "Wouldn't this concept lead to a more serious problem?" as another process, actually wanting to read/write a different record on the same file has to wait for the lock to get released by the process which has obtained the lock. If this is the case, think of a situation where we have a large number of processes (say, more than 1000) wanting to do a read/write on same/different records. Wouldn't this concept slow down the application? Please let me know if I have misunderstood the concept and throw some light on this... Regards maverix Last edited by maverix; 08-28-2007 at 11:35 AM.. Reason: remove my name in the signature |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|