[fpc-pascal]Pseudo-Thread
Lee, John
LeeJ at logica.com
Fri Sep 21 13:46:10 CEST 2001
sleep(n) (n is in msec) in win32, special delay functions (I can send you
code) under dos under win9x, dunno about linux, unix, m68k...BTW it's always
a good idea to say which o/s you are running on - remember fpc runs on all
sorts of platforms & o/ss... J
-----Original Message-----
From: Jens Rosenthal [mailto:mail at jason.de]
Sent: Thursday, September 20, 2001 09:20
To: Free Pascal Mailinglist
Subject: [fpc-pascal]Pseudo-Thread
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
_______________________________________________
fpc-pascal maillist - fpc-pascal at lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
More information about the fpc-pascal
mailing list