Hi David,
> I will look into this more, but I would be curious if Rivet works on
> that system. With the time I have right now being rather limited,
> Rivet is getting just about %100 of my efforts.
>From the information on the web sites, I also thought that Rivet would be a
good alternative -- most similar syntax and newer. But I could not build it
on my machine. I got all sources for TCL, Apache and Rivet, also MinGW to
have a GNU/UNIX like environment, but it does not compile on my Windows XP
box. One of the reasons might be, that I only downloaded the sources and I
did not configure every package to really build it. E.g. environment TCL_CC
is not set and the Apache tool APXS (which on windows is a apxs.pl) returns
only @include@, @libexec@, ...
If you have a Rivet binary, I would be happy to test it on my machine.
> Offhand, I can tell you that Tcl itself, when it does threads, creates
> a seperate interpreter per thread, so that might be problematic.
I should say, that the TCL I use is without thread support. So, this also
might be the problem.
> Can
> you tell me more about how 1.3 works with windows? I'm afraid I'm a
> bit in the dark with regards to windows.
Me too. W.r.t. Apache I'm more an end-user. I use the binary distribution
and my focus is to develop something upon apache/mod_dtcl. From what I know
from the documentation, Apache on Windows starts a child (subprocess), which
handles several requests, each in a separate thread. By default, the
configuration uses 50 threads per child and a child might handle an
unlimited number of requests, i.e. only one child is usually used to handle
all requests.
For mod_dtcl this means in apache's default configuration:
o apache httpd server get a first request and creates one child
handling this request
o the new child loads module mod_dtcl into memory
o the child handles the request and uses mod_dtcl to create the
html page by creating a new namespace, executing the TCL code and
destroying the namespace
o every new request is also passed to that first child and
in the child handled inside a new thread.
What happens, if two requests at the same time use mod_dtcl (loaded into the
child) to create pages? Do Windows threads run in parallel like processes? I
assume yes.
Best regards
Holger
PS: I was able to finally build WebSH (websh3.exe) on my machine, it took
some changes in the configuration and script.h to do so. If you are
interested, I can post it on the websh mailing list.
I will also try, if an external websh3.exe solves the problem. Then,
everything from getting the local page (including TCL code) to the final
HTML page to be send to the client is done in a seperate process, which
should be no problem. I will see, whether this gives some performance
drawbacks.
____________________________________________________________________
|
| Holger Zeinert - Development Manager CAE Division
|____________________________________________________________________
| LMS Deutschland GmbH - tel +49 631 4166-180, fax -166
| Luxemburger Str. 7, 67657 Kaiserslautern, GERMANY
| mailto:[EMAIL PROTECTED] http://www.lmsintl.com
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 04, 2002 8:16 PM
> To: Zeinert, Holger
> Cc: '[EMAIL PROTECTED]'
> Subject: Re: Multiple Threads on Windows
>
>
> "Zeinert, Holger" <[EMAIL PROTECTED]> writes:
>
> > Can anybody help with this? What did I do wrong? Is mod_dtcl
> > thread-safe? Obviously, a page with FRAMEs will request two pages
> > (both FRAMESETs) at almost the same time.
>
> I will look into this more, but I would be curious if Rivet works on
> that system. With the time I have right now being rather limited,
> Rivet is getting just about %100 of my efforts.
>
> Offhand, I can tell you that Tcl itself, when it does threads, creates
> a seperate interpreter per thread, so that might be problematic. Can
> you tell me more about how 1.3 works with windows? I'm afraid I'm a
> bit in the dark with regards to windows.
>
> I do have an XP computer at work that I could set up to debug this on,
> but I'd like some more information first.
>
> Thanks,
> --
> David N. Welton
> Consulting: http://www.dedasys.com/
> Personal: http://www.dedasys.com/davidw/
> Free Software: http://www.dedasys.com/freesoftware/
> Apache Tcl: http://tcl.apache.org/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]