|
|
|
|
![]() ![]() |
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. |
|
|
|
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.
|
|
|
|
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. |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 5th September 2008 - 09:42 AM |