delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/22/20:45:03

From: "Duncan Coutts" <Duncan DOT Coutts AT dial DOT pipex DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP Support Dual Processor?
Date: Wed, 22 Sep 1999 23:04:03 +0100
Organization: UUNET WorldCom server (post doesn't reflect views of UUNET WorldCom
Lines: 29
Message-ID: <7sbk10$6n5$3@lure.pipex.net>
References: <199908181620 DOT MAA28656 AT delorie DOT com>
NNTP-Posting-Host: aa177.du.pipex.com
X-Trace: lure.pipex.net 938038112 6885 193.130.240.177 (22 Sep 1999 22:08:32 GMT)
X-Complaints-To: abuse AT uk DOT uu DOT net
NNTP-Posting-Date: 22 Sep 1999 22:08:32 GMT
X-Newsreader: Microsoft Outlook Express 4.72.2106.4
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>This is probably answered in the FAQ somewhere but does DJGPP support
dual
>processor?


DJGPP runs using DPMI which has many nice features such as memory
protection, virtual memory, but it is still Dos single tasking.
Win95+, Unix and other more advanced OSs support multitasking
(pre-emptive, not co-operative) by using multiple threads. Some OS's
(WinNT & probably some Unix versions) can take advantage of multiple
processors by allowing different threads to run on different
processors.

Some languages are specially designed for parallel processing although
this is usually for array processing systems rather than
multithreading designs which fit more easily into traditional
languages. C++ is a traditional language, but there are no features in
the language or in standard libraries for multithreading (as in Java).
Any multitasking is platform specific and therefore non-portable.
Unfortunately for you, DJGPP's platform has no such features.

Some people have implement multithreading in C++ but this is very
difficult and is a major chunk of writing an operating system kernel.

Duncan Coutts.




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019