home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,629 of 2,978   
   Marco van de Voort to Ruud.Baltissen@apg.nl   
   Re: Multi processing   
   11 Mar 08 11:50:15   
   
   510edb92   
   From: marcov@stack.nl   
      
   On 2008-03-11, Ruud.Baltissen@apg.nl  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 support 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.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca