views:

30

answers:

2

Hello All,

I have some TCL scripts on the server . I am using a client (html/php ) to call them . I want to know if each seperate http request ( to call a TCL script from php script ) executes in separate thread ? i.e can i have multiple instances calling the same TCL script ? Could some one throw some light on this .

Regards, Mithun

A: 

If your php script is making a system or exec call, it would be as though you made that same call in a standalone console. The processes are effectively operating in different threads.

Mark Rushakoff
+1  A: 

I believe the web server plays a part in deciding if each http request executes a seperate thread. As far as apache, then yes, each request will execute in a seperate thread. As far as having mutiple instances of the tcl script - that all depends on how well the tcp script has been coded.

J Sidhu