RE: Multiple loops interrupt each other :(
> From: Kat
> On 12 Jan 2004, at 22:59, I Mullins wrote:
>
> >
> > Weichel wrote:
> > >
> > >
> > > Hello list,
> > >
> > > I have a couple of loops that I want to run in parallel
> > > but, when I start number two the first stops and vise versa.
> > > When I stop number two number one will continue.
> > >
> > > Each loop are in a procedure for itself and I am using the IDE
> > > to develop the program.
> >
> > Short answer: you can't.
> > Euphoria does not have threads.
> >
> > You might be able to write some tricky code which might appear to
> > operate in parallel, but it would be: 1. tricky, and 2. not
> > actual parallel processing.
>
> Two ways you can do this, and both means two separate programs:
>
> 1) use dde, socks, or ipc to link two apps
> 2) use the windows server in the archives, it's like win3.1
> in written Eu!
Here's another: use timers instead of loops. You're using the IDE, so I
assume you're running under Windows. Set a couple of timers, and run
one iteration of the loop for each time the timer fires. The other
question I would ask is, what are you trying to do in the two loops?
Maybe there's a different (better?) way to do it.
Matt Lewis
|
Not Categorized, Please Help
|
|