by Marco van de Voort <marcov@[EMAIL PROTECTED]
>
Mar 11, 2008 at 11:50 AM
On 2008-03-11, Ruud.Baltissen@[EMAIL PROTECTED]
<Ruud.Baltissen@[EMAIL PROTECTED]
> wrote:
> Just a question out of curiousity: is it possible to create program
> under TP that can make use of more then one CPU?
The long answer
Anything is possible under TP. TP just creates a stream of assembler
instructions to execute, and if you labour hard enough you can accomplish
a
lot. But since both TP and Dos hardly can do anything that modern systems
can, you will have to fill all the blanks yourself.
Of course that means you will have to write a SMP safe threadlibrary with
a
SMP scheduler, and adapt the RTL to use that. That's where the problem
lies.
Dos provides nothing. So effectively it would be like creating your own
realtime OS system with a minimal dos emulation to run your TP programs.
The short answer:
See if you can find thread sup****t in an existing system that can run dos
binaries (e.g. Windows and Desqview X). Then you might be able to use that
scheduler
The ultra short answer:
start two dos binaries under Windows. Find some way to connect them
together
via IPC or sockets.