delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/10/16:44:19

Sender: "Rolf Campbell" <moscoop AT nortelnetworks DOT com>
Message-ID: <38A32674.A12A521E@americasm01.nt.com>
Date: Thu, 10 Feb 2000 15:58:28 -0500
From: "Rolf Campbell" <moscoop AT nortelnetworks DOT com>
Organization: Nortel Networks
X-Mailer: Mozilla 4.71 [en] (X11; I; HP-UX B.10.20 9000/785)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com
Subject: Re: How Do I start another DOS program from DJGPP ?
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000210174053 DOT 29921A-100000 AT is>
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:

> > int_handler
> > {
> > read_last_string_from_file("tempfile.txt");
> > process_that_string_quickly_since_we_are_in_an_interrupt;
> > }
>
> That won't work (or, rather, will crash your system): you cannot safely
> make DOS calls from a hardware interrupt handler, and reading from a file
> requires a DOS call.

    But isn't the DJGPP timer interrupt really delayed until data is
acessed, and then called from the page-fault handler?  Does a page-fault
handler have that limitation? (no interrupt calls)


--
(\/) Rolf Campbell (\/)



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019