Re: Eu and multithreading

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

On 10 Jan 2001, at 20:43, Jeffrey Fielding wrote:

> On Wed, 10 Jan 2001, cEnsE wrote:
>
> > On Wed, 10 Jan 2001, Grape_ Vine_ wrote:
> > >> Does Eu multithread?
> > >>
> >
> > The simple answer is NO....but i believe Jeff Fielding wrote a wrapper for a
> > threads library in linux. This does of course mean that its only available
> > for exu.
>
> Yeah, it's out there somewhere. If you want, you can get it at
> http://jjprog.tripod.com/euphoria.html. Note, however, that it probably
> won't work... I really don't recommend using it, though you might find it
> interesting anyway. Perhaps I could add some code so it only runs one Euphoria
> routine at a time... I'll look into it.
>
> I did write another library (which does work) which allows some simple
> messaging and cooperative multitasking called ESE (Event System for
> Euphoria), which you can also find at my website or in the arcive. It's
> completely cross-platform.

The ESE is a form of time-slice multitasking more than one app within one
Eu program. If you want a faster time-slicing-threading, make your threads
into separate Eu programs, and run/kill them as needed, communicating
the global vars between them with either socks or DDE. With DDE, you are
limited to all the threads running on one windoze puter. With socks, you
can run threads on as many puters as you have, and even across
platforms, across a LAN or the internet.

I thread mirc with 3 mirc.exe's, and i use one mirc.exe with an Eu
application,, so you can even run threads across programming languages.
 smile

Kat

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

Search



Quick Links

User menu

Not signed in.

Misc Menu