100 CPU on Win2k

Boriss Mejias boris.mejias at uclouvain.be
Mon Jan 29 17:31:47 CET 2007


Strange behaviour indeed. I tried the code on w2k, linux and macosx. 
Only w2k generates the problem of 100% of CPU. But it is not really a 
crash because the program keeps on running and generating feedback.

We will try to investigate further. Thanks for the feedback.
cheers
Boriss

Gal Amram wrote:
> Hello all
> 
> I use Mozart Engine 1.3.2 (20060615) playing Oz 3.
> Windows 2000 SP4.
> 
> Tried a little variation from tutorial of Oz:
> http://www.mozart-oz.org/documentation/tutorial/node8.html#label48
> 
> Just changed Browse to Show:
> functor
> import
>    System(print:Show)
>    %Browser(browse:Browse) %Import Browse form Browser module
> define
>    proc {Ping N}
>       if N==0 then {Show 'ping terminated'}
>       else {Delay 5000} {Show ping} {Ping N-1} end
>    end
>    proc {Pong N}
>       {For 1 N 1 
>        proc {$ I} {Delay 6000} {Show pong} end }
>       {Show 'pong terminated'}
>    end
> in
>    {Show 'game started'}
>    %{Ping 10}
>    %{Pong 10}
>    thread {Ping 50} end
>    thread {Pong 50} end
> end
> 
> Compiled:
> ozc -x PingPong.oz
> 
> When i run the output exe file, ozengine.exe is taking 100% CPU.
> 
> I checked this same program on Linux (previous version though) and all 
> is well.
> 
> Do you get the same behavior? Is that a bug ?
> 
> Thanks,
>  Gal
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _________________________________________________________________________________
> mozart-users mailing list                               mozart-users at mozart-oz.org
> http://www.mozart-oz.org/mailman/listinfo/mozart-users


More information about the mozart-users mailing list