TIP: Click on subject to list as thread! ANSI
echo: cis.general_interest
to: Simon R Ashby 100111,2173 (X)
from: Kevin Darling 76703,4227
date: 1994-08-09 19:06:07
subject: #20193-#RS232 response time?

#: 20196 S1/General Interest
    09-Aug-94  19:06:07
Sb: #20193-#RS232 response time?
Fm: Kevin Darling 76703,4227
To: Simon R Ashby 100111,2173 (X)

Okay.  My best guess:

It sounds like they're probably using their main process to answer you once
they hit a main loop area where it can notice your input... and that the main
process takes a max of 25ms to get around to this area.

What they might try doing is:

  * Have a background process of high priority waiting for your tick. (It could
even just always have a one-byte read pending vs polling the serial port.)

  * Share a data module (containing the latest desired text annotation) with
the main process and the background process.

  * The background process can then respond to your tick fairly immediately.

This assumes, of course, that they don't have any far more critical (higher
priority) processes or long interrupt routines.  No OS can handle the case
where there are more high-priority processes than there is cpu power to handle
them :-)

best - kevin

There is 1 Reply.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.