Serving the Quantitative Finance Community

 
User avatar
farmer
Topic Author
Posts: 63
Joined: December 16th, 2002, 7:09 am

on linux I can read and write the same file at the same time, right?

September 25th, 2009, 9:43 pm

I swear I have written a file and read it at the same time, but I don't remember when. This is a standard feature of Linux, no?
Antonin Scalia Library http://antoninscalia.com
 
User avatar
Questor
Posts: 0
Joined: September 15th, 2009, 11:31 am

on linux I can read and write the same file at the same time, right?

September 25th, 2009, 11:32 pm

Yes, you can open the file in read/write mode and have calls of both types intermixed, if that´s what you mean. If you intend to access the file concurrently from different processes/threads, then you may need to use some synchronization mechanism to guarantee data consistency.