Path: 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 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.