Re: Cobol app takes 100% CPU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
I have had the the same problem with other programs i.e. dbase 3+ word 4.0 ...
in dosemu 1.3.4 I have made a small change in
src/base/bios/int16.c  in function check_key_available():

here is the code for dosemu 1.3.4, I think this is equal to 1.4.0:

static unsigned check_key_available(int extended)
{
  unsigned keyptr = get_key(extended);
  if(keyptr == -1) {
    if(!port60_buffer || (port60_buffer & 0x80))
      trigger_idle();
    else
      reset_idle(0);
    /* 2006-12-13
     * dbase3+, word4.0, .... CPU-load is to heavy during idle. --ms
     * idle(500, 20, 0, INT2F_IDLE_USECS, "int16");
     */
    idle(10, 20, 0, INT2F_IDLE_USECS, "int16");
  } else {
    reset_idle(1);
  }
  return get_key(extended);
}

I think that may help for Cobol too.

Manfred

--
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Console]     [Linux Audio]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Camping]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Samba]     [Linux Media]     [Fedora Users]

  Powered by Linux