Re: Threads [Was: Re: 64 bit euphoria]
- Posted by Jason Gade <jaygade at yahoo.com> Apr 28, 2005
- 510 views
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.