🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6057

Re: Multi-tasking sources!

#6057
From: derek
Date: Wed, 08 May 1991 10:27
45 lines
1612 bytes
edb158hbp2@vx24.cc.monash.edu.au writes:




>Has anyone got code to

>Detect the presence and give away time slices for

>1) Double DOS
>2) WIndows 3.0
>3) Top View
>4) MultiLink
>5) Software Carousel
>6) AT BIOS

>or any other multi-tasker that you have source for..

>any source would be appreciated.. preferable in PASCAL..

>Note : I do have detection/time slicing for Desqview

>Peter Davies

I'm also interested in this. However, thinking about it, surely the 
answer is to let the multitasker do it. The major problem is in busy
do-nothing loops - waiting for a key to be pressed or a mouse click
for example. What is needed is an algorithm to do this whithout hogging
the CPU.

Does the event handler in Turbo Vision do this? If not, a better event 
handler is required. 

The sort of (pseudo-) code I'm thinking of is:
If any event pending
  handle and return the event
else
  exit

Therefore you only handle pending events, and don't wait for them. Is
this enough? Are there going to be any problems (missed events for example)?

Best Regards, Derek Carr
DEREK@DTS.INE.PHILIPS.NL           Philips I&E TQV-5 Eindhoven, The Netherlands 
Standard Disclaimers apply.
Technical Details
Message-ID: <729@sun4dts.dts.ine.philips.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!phigate!ehviea!sun4dts!derek
References: <1991May7.114816.1@vx24.cc.monash.edu.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!phigate!ehviea!sun4dts!derek
From: derek@sun4dts.dts.ine.philips.nl (derek)
Newsgroups: comp.os.msdos.programmer,comp.lang.pascal
Subject: Re: Multi-tasking sources!
Message-ID: <729@sun4dts.dts.ine.philips.nl>
Date: 8 May 91 10:27:27 GMT
References: <1991May7.114816.1@vx24.cc.monash.edu.au>
Lines: 45