Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concurrent write to a file by multiple processes - How

Status
Not open for further replies.

SeekerOfKnowledge

Programmer
Feb 5, 2002
26
0
0
IL
I am interseted in improving the performance of the
current solution implemented : All processes that need
to write data to the file (binary file, large quantities of data), write the records to shared memory, where the data
is collected a-synchronousely by a special process that
writes the datas to the file. This ensures that no
racing is done on the file, and that data is coherent.
Access to the shared memory is synchorinized by a lock
(semaphore). However, this has quite a large overhead in
resource management.
The question is : Are the system buffers protected from
mutual writes to a file by several processes ?
NOTE : I am using Ada83, not the basic system call "Write",
and I am not sure as to how this service is implemented.
I am running on a RS6000 machine, AIX4.3.2
Thanx ======
SeekerOfKnowledge
======
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top