delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/20/13:16:37

From: Edevaldo Pereira da Silva <q14792 AT email DOT sps DOT mot DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Multi tasking?
Date: Tue, 20 Apr 1999 14:33:03 -0300
Organization: Motorola - Semiconductor Producrs Sector
Lines: 25
Message-ID: <371CBA4F.C27DBBD4@email.sps.mot.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990420122556 DOT 841T-100000 AT is> <7fi9tj$nef$1 AT camel29 DOT mindspring DOT com>
NNTP-Posting-Host: caiapo.jag.br.mot.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.07 [en] (X11; I; SunOS 5.5.1 sun4u)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Lark wrote:
> 
> Eli Zaretskii wrote in message ...
> >
> >On Sun, 18 Apr 1999, Lark wrote:
> >
> >> How would I go about accomplishing multitasking?
> >
> >Please explain more what exactly do you mean by that.  One
> >interpretation is that several programs run at the same time sharing
> >the machine resources; another interpretation is that you have several
> >threads of execution in the same program.
> 
> This is more of what I had in mind, the multiple threads in the same
> program.  Surely it can't be impossible.  How would people make games where
> spaceships explode at the same time that other ones are still shooting, etc?
> Thanks for the feedback.

	Multiple threads in the same program are not impossible in Djgpp, there
are some packages that accomplish this like LWP or PDMLWP with several
degrees of reliability. But, if you are talking about games you don't
need multithreading, it is possible to achieve this kind of
functionality by writing a proper data structure and algorithm.
	Remember (if you are old enough) that most video games (mainly the old
ones) didn't have anything similar to threads.

- Raw text -


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