Storing cgi data in stacks

Richard Gaskin ambassador at fourthworld.com
Thu Feb 19 08:53:17 EST 2004


Shari wrote:

>> What would happen if you had two cgi scripts both
>> writing to the same stack at the EXACT (within a thousandth of a second)
>> same time?
> 
> This actually reminds me of a question I have...  what happens if
> many people are attempting to update a page at the same time?
> 
> For example, a guestbook CGI script updates a web page.  What happens
> when two guests try to do it at the same time?
> 
> Does one get an error?  Does it just "hang" until one is finished?

On Linux and Win servers a CGI call opens a new instance of the application.
To avoid overwriting files between instances I use a temp file as a flag.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge: Publish any database on any Web site
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com



More information about the metacard mailing list