470,868 Members | 1,946 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,868 developers. It's quick & easy.

concurrent access to object file

Hi again!

I will make the question more simple:

If two call to the "write" method of a file object "occur simultaneously "
is totally sure that the data of each call is writen successive or exist the
posibility of merge data?

where I can find information about this?

Thank in advance
Frank

Jul 19 '05 #1
1 1928
"Frank Abel" <fr*******@tesla.cujae.edu.cu> writes:
Hi again!

I will make the question more simple:

If two call to the "write" method of a file object "occur simultaneously "
is totally sure that the data of each call is writen successive or exist the
posibility of merge data?
Youv'e asked this before and failed to get an answer. I think you
failed to get an answer because there isn't a definitive one.

fileobject.c passes calls to the the write method to the C library
fwrite call. How that behaves under simultanious access depends on the
library implementation, and that probably depends on the underlying
OS. On Unix, that probably depends on how you got the file descriptors
the two file objects are using for I/O.
where I can find information about this?


Check the C and system library documentation for the platform you're
running on.

If you want to make your code portable, don't do this.

<mike
--
Mike Meyer <mw*@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Bruno Barberi Gnecco | last post: by
reply views Thread by Frank Abel | last post: by
1 post views Thread by focus | last post: by
2 posts views Thread by Ted Duross | last post: by
5 posts views Thread by PJ | last post: by
2 posts views Thread by Manit Chanthavong | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.