From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stas Sergeev Subject: Re: Dosemu and clipper applications eating all CPU Date: Mon, 15 Mar 2004 20:50:13 +0300 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <4055ECD5.70902@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: > it probably depends on the linker used to create the clipper app, here > we use blinker to create a protect mode application Yes, the prog I now have, also uses blinker. Btw, in both dosemu-1.2.1 and 1.3.0 it works only in real mode since the proper Blinker support was added only in 1.3.1. Does your prog work in real or protected mode for you? > In 1.1.3 (which is the dosemu we use) 1.1.3 is too old and buggy. Why are you still using it? 1.3.0 or 1.3.1 should be much better. > I had to make the changes I told you, and I > use hog_threshold(0) to have the clipper app to give back all the time > it doesn't use. OK, but not everything is clear. You said you call usleep() every 50th call and set $_hogthreshold=(0). But then, if you set $_hogthreshold=(1) with an unmodified dosemu, it should call usleep() on *every* call of int21/ah=2c, so it must release much more CPU time! How it happens that it doesn't? (please see int.c line 1201, where 0x2c is trapped).