Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Reactions To A Busy File
kvarnerexpress
post May 31 2005, 10:14 PM
Post #1


Super Member
*********

Group: Members
Posts: 407
Joined: 13-December 04
Member No.: 2,696



I just wanted to know if let's say you have a file called tempfile.dat and it is being used by dozens of parts of a script to transfer data, what happens if both scripts run at the same time and use the tempfile? will it throw a text file is busy error or will it patiently wait until a script is done using it before it uses it?

Because if i send information to the tempfile, then close it, then reopen it again to transfer back the information, I don't want the other script to start using it in the middle of that sequence or the results will be catastrophic.

Any info appreciated.

Go to the top of the page
 
+Quote Post
osknockout
post Jun 1 2005, 11:58 AM
Post #2


Super Member
*********

Group: Members
Posts: 399
Joined: 14-November 04
From: Elysium
Member No.: 2,280



(scripts? C++ forums? just wondering) Well it's kind of weird. For some apps a busy error comes, for other ones, it goes straight for it. I believe a system busy error will happen. By the way, I never heard of requests for the same file stacked by systems, so in either case, you'll get a system busy or those catastrophic results.
Go to the top of the page
 
+Quote Post
.hack//GU
post Sep 11 2007, 09:39 AM
Post #3


Premium Member
********

Group: Members
Posts: 190
Joined: 21-October 05
Member No.: 13,185



what? tempfile.dat? if it is a script, then is C a script or at least can be used as script language? for all I know, C is a language that cannot be used as a script (not like VB that can be used as scripting)

anyway, if you ask for a script language nearing C, then PHP will come to mind.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Storing Bit Values In A File(1)
  2. Local File Time To File Time()(0)
  3. Simple C File Handling In Action(3)
  4. File Format Encyclopedia Release 1.00(2)
  5. Encrypting A File(5)


 



- Lo-Fi Version Time is now: 5th September 2008 - 09:42 AM