473,811 Members | 4,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2071
"Frank Abel" <fr*******@tesl a.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.or g> 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
3802
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 of the problem, or how to avoid conflicts, which I know how to solve; I just need a few atomic primitive shared among any PHP processes that may be running. I could even have a separate process serializing all operations if such a thing is...
0
361
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): .... .... For log the request and error I create a file and atteched it to the server instance. Then the file log object can be see at RequestHandler instance
12
2387
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 Access, I cant access it via ASP: Microsoft JET Database Engine error '80004005' Could not use ''; file already in use.
1
1990
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 accest, at the time to insert another object in the list?. I supose that the answer is that STL doesn't accept concurrent access when I have to insert an element to the list, but I want to be sure. Thanks for your help.
2
7470
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 file stores DataSet information, one DataTable and a number of DataRows, one per student. Once finished the student’s DataRow is updated and the DataSet is written to the XML file.
3
4459
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 pointer to the active record maintained by the second TADOQuery instance is also affected. Is there a way I can force Delphi to use a seperate pointer to the DB for each instance of my class? I'm truely a beginner in DB programming, so I...
5
6334
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 serialize all requests from the same session. Further requests from the same session are being queued until the download is complete. So, is there any way to override this? Is there anyway to tell asp.net to not serialize same session requests? Is...
2
1802
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 to imply so. http://www.codeguru.com/net_asp/CacheSync.html However, this article states that the Cache object has a built in lock mechanism. http://www.fawcette.com/vsm/2003%5F05/magazine/columns/aspnet/
0
13363
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 programatically either from UNIX or Oracle PLSQL. In this Section, I will be explaining about calling a Concurrent program from UNIX using the CONCSUB Command. Pre-requisite: 1. Concurrent Program should be registered in oracle Applications...
0
9724
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9604
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10127
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6882
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5552
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4336
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.