Hello, I am begging a pardon I missed this message. I do not know how this can be done for Apache. I can explain how it works for Windows version of ROOT (http://root.cern.ch); Briefly say ROOT creates one dedicated "CINT" thread and remembers its "thread ID" with some global variable. Only that thread can make the direct call to CINT entries. All other threads send the plain character string to the CINT dedicated thread. It uses the special API provided. This way one may not care whether CINT is thread safe or not. Either way it is run by only thread. Of course this approach has some limitations but for me it is only reliable with "not thread safe code" May be the appropriated pieces of the code can be extracted from the ROOT class library to be embedded into the plain CINT. Hope this helps, Valery ----- Original Message ----- From: csyap_jethyper <yap@jethyper.com.tw> To: Valeri Fine (Faine) <fine@bnl.gov> Sent: 20 èþëÿ 2000 ã. 0:19 Subject: Re: MOD_CINT: problem with Win32 version of > > > > ----- Original Message ----- > From: csyap_jethyper > To: MXJ02154@niftyserve.or.jp > Sent: Sunday, July 16, 2000 1:36 PM > Subject: MOD_CINT: problem with Win32 version of APACHE > > here you are. > ====================== > > hi, > > firstly , i would like to thank you to make CINT freely available, > recently i encounter a problem , which is caused by > CINT is not thread-safe, > here is the scenario: > > i use a apache module to make cint act as a "server-side scripting language" > in apache (like asp and jsp) : MOD_CINT, > http://linux.medyatext.com.tr/apache/cint.html > under Linux , the module works fine, > but under WinNT/98 , Apache use "multithreading" instead of "pre-forking" > model , and this causes error when mod_cint is handling more than one > request at > the same time, > according to \cint\demo\mthread\readme.txt > cint is not multi thread safe, how could i solve the problem ? > the child thread which will call CINT is created by Apache main worker, > how could i make it thead-safe ? > do i need to rewrite all my custom function ? > please provide a way to go, thank you in advance. > > > yap > > > > > > > Hi, teams > > It seems to me I missed the original message. > > Could you forward it to me ? > > > > Thank you , > > Valery > > >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:30 MET