HP3000-L Archives

February 1996, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bruce Toback <[log in to unmask]>
Reply To:
Bruce Toback <[log in to unmask]>
Date:
Mon, 5 Feb 1996 10:23:19 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
At  4:44 PM 2/2/96 +0000, Tom Emerson wrote:
>THEN I started looking through the intrinsics, interprocess communications,
>etc. handbooks on the latest CD rom and found EXACTLY what I was looking for
> -- an "interrupt" service routine!  You can use FCONTROL(message-file, 48,
>interrupt-handler-address) to specify a routine that handles incoming
>messages when the processor is "busy" with another part of the program (such
>as waiting for a terminal or socket read to complete)
 
There are some gotchas with this:
 
1. Most system code can't be interrupted. The exceptions are IOWAIT and
PAUSE. So you'll still have to do nowait I/O on the terminal in order to
get what you want. The soft interrupt will not interrupt an FREAD.
 
2. I'm dealing right now with some bizarre happenings in soft interrupts.
Specifically, if you're using a generic IOWAIT as well as soft interrupts,
you sometimes get an IOWAIT completion on the file for which you have the
soft interrupt enabled. After that, you get a soft interrupt, but the
IOWAIT in the soft interrupt handler returns "No no-wait I/O pending"
because the I/O has already been completed by the IOWAIT. The response
center is looking for a solution; I'm not hopeful since the engineer
assigned to the call did not understand the function of an FCONTROL 48 -- I
had to explain it to him.
 
3. If your soft interrupt routine might be called from privileged code, you
must enable soft interrupts from privileged mode.
 
-- Bruce
 
---------------------------------------------------------------------------
Bruce Toback    Tel: (602) 996-8601| My candle burns at both ends;
OPT, Inc.            (800) 858-4507| It will not last the night;
11801 N. Tatum Blvd. Ste. 142      | But ah, my foes, and oh, my friends -
Phoenix AZ 85028                   | It gives a lovely light.
[log in to unmask]                 |     -- Edna St. Vincent Millay

ATOM RSS1 RSS2