Re: Own implementation of multithread



On Aug 28, 12:15 am, lkfstep...@xxxxxxxxx wrote:

In c++ code, I am trying to create many threads, each thread will
create its own interpreter.
Each interpreter will need to eval a script.
...
I would like to ask is this approach is wrong?

It is hard to say without further details on your constraints, but
when possible it is better to stay at script level as pervasively as
possible, simply because for coarse-granularity operations like
spawning a thread+interp, there's no added value (like speed) in doing
it at the low level, while there's added complexity.

Maybe you can elaborate: is there an external requirement preventing
you from doing the "master" part in a Tcl script using the Thread
package ?

-Alex
.



Relevant Pages

  • Re: Need help with CGI/ DBI error (permissions?)
    ... >> Reason I'm asking is because even when I run the script from a command ... perl myscript ... > interpreter you specify in the shebang line is irrelevant. ... IIS server can't be too far off. ...
    (comp.lang.perl.misc)
  • Re: A little help please?
    ... > the interpreter under Windows, preferably without the XP command prompt? ... Command Prompt and feed your script to perl, ...
    (perl.beginners)
  • Re: PHP in html
    ... additional calls to the server, ... to invoke a script handler for every single image. ... configuration of the webserver and the PHP interpreter. ... If you think interpreting all pages as PHP ...
    (comp.lang.php)
  • Re: No argv, argc for worker thread
    ... I expected that a Tcl interpreter started in any manner would accept options ... This is how the interpreter works with command line options ... a "main" script processes command line ...
    (comp.lang.tcl)
  • Re: innerHTML problem in IE6
    ... element content is script code that needs to be passed to a script ... I meant browsers that don't ignore the content of elements, ... HTML document while the rest is still being parsed. ... script interpreter in parallel does not imply that if the script interpreter ...
    (alt.html)