473,387 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 2043
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Bruno Barberi Gnecco | last post by:
I'm developing a collaborative application in PHP which accesses local files and may modify them. How can I synchronize the multiple accesses? Note that I'm not worried about the algorithmic part...
0
by: Frank Abel | last post by:
Hi all! I will build a HTTPServer and dislike that one request is handled at a time (synchronous). So I write: class MyHTTPServer(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer): .......
12
by: CJM | last post by:
I'm setting up some web-based (ASP) reports that query an Access DB. I also want certain people to be able to access and manipulate the database directly. However, if the database is open in...
1
by: focus | last post by:
I have one doubt, I have defined a singleton class, that implements a STL list, this singleton class, will be access at the same time from diferent classes. My doubt is if STL accepts concurrent...
2
by: Ted Duross | last post by:
Hi, I’ve created an educational software application accessed by students from a central server. On Start-Up the application reads an XML file that stores student progress records. This XML...
3
by: John Fine | last post by:
I wrote a Delphi application that accesses a local Access database using 2 instances of the TADOQuery class. Unfortunately, when I traverse the DB records using the first TADOQuery instance, the...
5
by: PJ | last post by:
I posted a few days ago concerning requests being blocked from a main window after a popup window had initiated a file download. Apparently this has to do with the fact that asp.net or iis...
2
by: Manit Chanthavong | last post by:
I just read, that concurrent read & writes to the Cache object corrupts the data. My question is, Is it necessary to create a mechanism for locking when writing to the cache? This article seems...
0
amitpatel66
by: amitpatel66 | last post by:
There is always a requirement that in Oracle Applications, the Concurrent Program need to be execute programatically based on certain conditions/validations: Concurrent programs can be executed...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.