Article View: comp.sys.amiga.tech
Article #9554Re: Need info on exceptions
From: Morgan W. Jones
Date: Sat, 20 Aug 1988 21:33
Date: Sat, 20 Aug 1988 21:33
26 lines
1531 bytes
1531 bytes
In article <1754@munsell.UUCP> jdj@munsell.UUCP (Joel Jennings) writes:
>I am looking for a way to cause my program to take an exception periodically
>so that it can write out intermediate results of a long calculation* (see
I'm rather new to programming the Amiga, but have been looking at the
interrupt system.
One approach that seems reasonable would be to send a message to the
timer.device asking it to send you a message in ten minutes (600 secs).
Arrange that the reply port that it sends to generates a software
interrupt of priority higher than your program (so that it preempts
it), and this swi can delete the message, ask that another message
be sent in ten minutes, and write out your intermediate data. Of
course, you'd have to make sure that a swi can do things like delete
messages, send messages, open files, etc.
How's that sound?
"Anyone? ... Anyone? ..."
>Joel Jennings | Wampeters, foma, and granfaloons.
--
Morgan Jones morgan@brambo.UUCP
...!{uunet!mnetor!lsuc!ncrcan, utgpu!telly}!brambo!morgan
Starting at HCR on monday.
Technical Details
Message-ID:
<413@brambo.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!lsuc!ncrcan!brambo!morganReferences:
<4989@pasteur.Berkeley.EDU> <566@wuphys.UUCP> <1754@munsell.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!lsuc!ncrcan!brambo!morgan From: morgan@brambo.UUCP (Morgan W. Jones) Newsgroups: comp.sys.amiga.tech Subject: Re: Need info on exceptions Message-ID: <413@brambo.UUCP> Date: 20 Aug 88 21:33:37 GMT References: <4989@pasteur.Berkeley.EDU> <566@wuphys.UUCP> <1754@munsell.UUCP> Reply-To: morgan@brambo.UUCP (Morgan W. Jones) Organization: Bramalea Software Inc., Bramalea, Ont. Lines: 26