🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #10762

Running 'z' at high priority causes it to trap

#10762
From: Karl Lehenbauer
Date: Sat, 31 Dec 1988 06:02
23 lines
1628 bytes
I've been working with a midi input handler and a task that it signals that
runs at priority 25.  I know the manual says to use something lower but
'stat' shows other programs do the same plus Dan Baker's SMUS player uses
21, so it's a common practice for this severely realtime activity.

Anyway, it seemed that after exiting (and to confuse things further, the
example serial handler in the Exec reference manual never exits), 'z' 
would get a task held yet everything else seemed to work OK.

Well, it turns out that if you don't SetTaskPri back to the original priority
when you exit and you were launched from the CLI, the CLI will have the
high priority and everything executed from that CLI will have the high
priority.  'z', for no reason known to me, will get a task held if run at
these high priorities.  Z is kind of flakey, anyway, so it shouldn't come
as too great a surprise.

Anyway, setting the priority back when done has eliminated the z traps in
two different programs of mine, so I thought I'd pass this along for
anyone else who's having similar difficulties.
-- 
-- uunet!sugar!karl  | "We've been following your progress with considerable 
-- karl@sugar.uu.net |  interest, not to say contempt."  -- Zaphod Beeblebrox IV
-- Usenet BBS (713) 438-5018
Technical Details
Message-ID: <3188@sugar.uu.net>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!killer!texbell!uhnix1!sugar!karl

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!killer!texbell!uhnix1!sugar!karl
From: karl@sugar.uu.net (Karl Lehenbauer)
Newsgroups: comp.sys.amiga.tech
Subject: Running 'z' at high priority causes it to trap
Message-ID: <3188@sugar.uu.net>
Date: 31 Dec 88 06:02:24 GMT
Organization: Sugar Land Unix - Houston, TX
Lines: 23