100 CPU on Win2k

Gal Amram tsunami.gal at gmail.com
Sun Jan 28 03:03:59 CET 2007


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gforge.info.ucl.ac.be/pipermail/mozart-users/attachments/20070128/61d1220d/attachment.html


More information about the mozart-users mailing list