Re: Threads [Was: Re: 64 bit euphoria]

new topic     » goto parent     » topic index » view thread      » older message » newer message

codepilot Gmail Account wrote:
> 
> Way back when I made my own eueu, it was simulating multithreading. It
> would make multiple instances of the local variables, and make the
> globals global. It would call do_instuction a few times, then
> switch_instance, and do_instruction some more. If threading was
> simulated at the interpreter level, like mine, then the parser
> situation would be alleviated, and no real threading/locks/reentracy
> checking would be necessary. Buy interpreter simulated threads would
> still stop all threads for blocking calls.
> Dan

Right, I forgot to mention.  If using simulated threading the programmer must
ensure that no thread blocks or takes an excessive amount of time to run.  It
basically boils down to cooperative threading.


=====================================
Too many freaks, not enough circuses.

j.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu