Re: Win32 STk uses 100% of CPU

From: Stacy Marsella <marsella_at_ISI.EDU>
Date: Sat, 13 Nov 1999 07:58:44 -0800

Erick,

I am not sure if Paul reported back on your suggestion. But I just
tried it and it appears to work. Processor usage on a win98 machine
(pentium II 350 mhz) was pegged at 100% using the stock binary of stk
4.01 but with your change it varies (down to about 1% when stk is
idling). As I type this email over a ppp telnet connection,
I am running the Tower of hanoi demo
with 20 disks without serious consequences. ToH will peg the cpu
at 100% of course but the "multitasking" is fine.

If anyone finds problems with this solution please let me know.

Stacy

> Paul Anderson writes:
> >
> > Hello!
> >
> > A quick question.
> >
> > On the Win32 platform STk 3.99.4 would cause the CPU usage meter
> > to max out at 100%, even while apparently sitting idle.
> >
> > Does anyone know if this problem was ever resolved, or if
> > it has been fixed in 4.0?
>
> Probably not. I have (probably) not changed things which should change
> this behavior.
>
>
> I cannot test right now since I have no Win32 machine available. But
> perhaps you could try this: In the Src/io.c file (line 25) there is
> a line
> # define TCL_EVENT_FLAG TCL_DONT_WAIT /* (FIXME) */
>
> I don't really remember why I had used this flag (probably for the
> 3.1.1 release where the inputs were done in a separate thread).
> Try to define it to
> # define TCL_EVENT_FLAG 0
>
> Please tell me if it works.
>
>
> -- Erick
>
Received on Sat Nov 13 1999 - 16:59:01 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST