Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!tcdcs!bofin!cjmchale From: cjmchale@cs.tcd.ie (Ciaran McHale) Newsgroups: comp.windows.x Subject: Re: Interrupting an X program... how? Message-ID: <1991Mar2.191657.23976@cs.tcd.ie> Date: 2 Mar 91 19:16:57 GMT References: <1991Mar1.045842.21676@contact.uucp> <1991Mar2.172400.23214@cs.tcd.ie> Organization: DSG, Dept. of Comp. Sci., Trinity College, Dublin. Lines: 28 I forgot to say something... I write: >>[How do interrupt a X application which is doing CPU >>intensive calculations] > >2. Split your application up into two processes; a >"fron-end" process which handles the X interface, and a >"back-end" process will does a lot of CPU intensive work. >These two processes can communicate with each other via >pipes/sockets/FIFO/whatever-IPC-mechanism-your-OS-supports. >All :-) that need be done then is to get the front-end >process to listen to both the X server and the back-end >process at the same time. If you want to take this approach >then email me and I'll send you a collection of emails >(about 25k long) which discuss how to do this in detail. Since the front end no longer does any of the CPU intensive calculations it can quickly respond to the user pressing a "quit" button and act appropriately. Ciaran. -- Ciaran McHale "Verbosity says it all" ____ Department of Computer Science, Trinity College, Dublin 2, Ireland. \ / Telephone: +353-1-772941 ext 1538 FAX: +353-1-772204 \/ Telex: 93782 TCD EI email: cjmchale@cs.tcd.ie