From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stas Sergeev Subject: Re: Dosemu and clipper applications eating all CPU Date: Thu, 11 Mar 2004 21:44:08 +0300 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <4050B378.8010700@aknet.ru> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-msdos@vger.kernel.org Hello. Maurilio Longo wrote: > clipper runtimes calls int 0x21 sub-function 0x2C, I intercept this one > and issue a usleep(). > every 50 times this function gets called or else I had a sluggish dos OK, thanks. Now any ideas why it doesn't work right away? Looking into int.c:1201, I get an impression that when hogthreshold==1, usleep() gets called every time the int21/ah=2c is called. So where's the problem? Something wrong about CAN_SLEEP() ?