TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: HANK BARTA
from: Bruce Simpson
date: 1994-09-06 16:56:24
subject: Real-Time

HB>OS/2 supports four 'priority classes', corresponding to

HB>        1.      Idle Time
HB>        2.      Normal
HB>        3.      Time Critical
HB>        4.      Server

HB>Within each class, there are 32 priority levels. Within the 'Normal'
HB>priority class, the kernel can adjust priority levels to provide tasks
HB>with 'fair' access to the CPU. (This adjustment can be turned off by a
HB>setting in config.sys.) I think that priorities are discussed along
HB>with the DosSetPri() (or something like that) in the Control Program
HB>reference in the toolkit information folder.

It's a pity that good real-time support requires more than just an
ability to set priority levels.

To be *really* effective, the OS should provide priority inheritance so
that when a high-priority task calls a DLL or an OS service (such as
disk or comms I/O), that thread in the DLL or OS inherits the priority
of the calling application.

This way you don't have high priority tasks being blocked by lower
priority tasks when they needn't be.  It's been my experience that under
OS/2 the realtime effectiveness of the system is *greatly* compromised
by the amount of non-interruptable code that executes in the kernal
which causes significant scheduling delays even on high-priority
time-critical tasks :-(

--- Enigmax v1.04a

* Origin: === Enigma BBS, Akld, NZ. +64 9 480-0951 === (3:772/350)
SEEN-BY: 12/2442 54/54 620/243 622/407 623/630 624/50 632/339 348 640/715 820
SEEN-BY: 670/215 690/347 660 700/31 711/409 410 413 430 807 808 809 934
SEEN-BY: 712/353 623 713/888 770/115 771/1320 772/1 20 140 207 350 380
SEEN-BY: 774/605 800/1
@PATH: 772/350 20 712/353 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.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™.