[fpc-pascal]Additional... Pseudo-Thread

Adam Naumowicz adamn at math.uwb.edu.pl
Fri Sep 21 11:26:52 CEST 2001


On Fri, 21 Sep 2001, Jens Rosenthal wrote:

> > Hi Everyone,
> >
> > hope you can help me with my question...
> >
> >
> > I'd like to have several instances of my program running at the
> > same time, working apart from one another.
> >
> > The problem is, every instance takes 99.8 % CPU time, so only the
> > first instance is running, then the second, and so on.
> > In Java I would define the program as thread and let the thread
> > sleep at certain points in execution, so that the other instances
> > can take their time.
> >
> > any ideas how I could handle this behavior with fpc?
> >
> > many thanx in advance,
> >
> > Jens
>
> Sorry for forgetting an important part.
>
> I'm trying this on linux.

Under Linux you can decrease the nice number for your apps to run
together.

Regards,
Adam Naumowicz

--------------------------------------
WWW: http://math.uwb.edu.pl/~adamn/
--------------------------------------





More information about the fpc-pascal mailing list