On Fri, 30 May 2003, a a wrote:

> Alright, perhaps some more info on why I *thought* I
> may need them...
>
> I'm trying to set up a site that will serve as an
> automarker for a contest. So, people uplaod their
> source code, and then the script compiles it, runs the
> executable, checks output, sends results... Of course,
> I need to know who submits what problem, so I did that
> using authentication, and then, I'd know using
> %ENV{REMOTE_USER} who is submitting the problem.
>
> The problem arose when i started thinking about what
> would happen if TWO people submit problems nearly
> simultaneously... What happens to the REMOTE_USER
> variable? How does the script tell them apart? Maybe
> I'm just not understanding very well how things work.
>
> Hopefully that gives more background. I'm still NOT
> sure how multiple users are handles. Is this just
> something that Apache takes care of for me?
>

This is something that you sholdn't have to worry about. If two users
submit their problems at the same time two distint instances of the script
will be run by the server. Each will have its own REMOTE_USER. Unless the
scripts write to a file with the same name there should not be a conflict
between multiple instances of the same script running together. If this
type of self-conflict does exist, the flock() function can be used to
assure exclusve use of a shared resource.

**** [EMAIL PROTECTED] <Carl Jolley>
**** All opinions are my own and not necessarily those of my employer ****
k

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to