delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/31/22:06:24

From: PsySal <french AT freenet DOT calgary DOT ab DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Code swapping / True Multithreading?
Date: Thu, 31 Oct 1996 15:23:58 -0700
Organization: Calgary Free-Net
Lines: 31
Message-ID: <Pine.A32.3.93.961031152009.55016C-100000@srv1.freenet.calgary.ab.ca>
NNTP-Posting-Host: french AT srv1 DOT freenet DOT calgary DOT ab DOT ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I will probably never do this, but I'm wondering about protected
code-swapping / true multithreading et al. It's been awhile, but I
remember reading in "Advanced 80386 Programming Techniques" about how to
properly multithread. Now, what I am wondering is this: Is there any EASY
way to do this in DJGPP? I thought of having a list of objects, each
perfectly encapsulated in a little 80386 pill, and pulling a timer
interrupt to swap between them. This has a lot of applications for games,
although as I see it it's probably near impossible for someone like me
(almost no pmode experience at all) but if there were an EASY way...

Thanks,

PsySal...? LakLakLakLakNieeNieeNieeNiee! ---------------------------
B013CD10B7A08EC3B2C8B940018BC133C2AAE2F9FECA75F2B407CD21B80300CD10C3
--------------------------------------------------------- ?...laSysP
XXXXX XXxx XxxxxXX XXxXXx XXX XxxXX XxxxXX  x XX  .     .  .  . XxxX
 XXXXX Xxx XXxxxXXX xXxxXX x XXxxxXXx xxxX XXXxx   <><   . ><>   xxX
x XXXXX Xx xXX xxX XXxXXXxxXx XXXXX Xxx XXX xxXX        .   <>< XxXX
XXx.XXXX.Xxx.XXXXxx.xXxXX XXxXXxxxx XXxx xxxxxxX    ><>         xXxX 
D-A-M-N-E-D-B-A-B-B-L-E-F-I-S-H-H-A-D-R-A-B-I-E-S-S-T-U-P-I-D-M-E-!!                             
--------------------------------------------------------------------
  -- I apologuise, Shaun began, but I would rather spinooze
you one from the grimm gests of Jacko and Esaup, fable one,
feeble too. Let us here consider the casus, my dear little cousis
(husstenhasstencaffincoffintussemtossemdamandamnacosaghcusa-
ghhobixhatouxpeswchbechoscashlcarcarcaract) of the Ondt and
the Gracehoper.
  -- ... Damned babble fish... BIT ME!
--------------------------------------------------------------------

- Raw text -


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