Article View: comp.lang.oberon
Article #1337Re: Oberon Task Statistics (Windows)
From: zeller
Date: Tue, 16 Apr 1996 07:18
Date: Tue, 16 Apr 1996 07:18
49 lines
1587 bytes
1587 bytes
With the attached modules I mesured the following values (Win95 on P120) 1.38E+4 Tasks/s using the standard System 3 for Windows 1.24E+5 Taks/s using my experimental Multithreaded System 3 For Winows 95 In the multithreaded versions the Oberon.Loop does not poll the windows message queue. Emi Zeller MODULE TestTasks; IMPORT Input, Texts, Oberon; VAR T: Oberon.Task; count, time: LONGINT; W: Texts.Writer; PROCEDURE *Timer(me: Oberon.Task); BEGIN INC(count) END Timer; PROCEDURE Start*; BEGIN IF T = NIL THEN NEW(T); T.safe := FALSE; T.time := 0; T.handle := Timer; count := 0; time := Input.Time(); Oberon.Install(T) END END Start; PROCEDURE Stop*; BEGIN IF T # NIL THEN time := Input.Time()-time; Oberon.Remove(T); T := NIL; Texts.WriteReal(W, count/(time/Input.TimeUnit), 20); Texts.WriteLn(W); Texts.Append(Oberon.Log, W.buf) END END Stop; BEGIN T := NIL; Texts.OpenWriter(W) END TestTasks. TestTasks.Start TestTasks.Stop
Technical Details
Message-ID:
<4kvhl2$rgr@neptune.ethz.ch>Path:
arc1-ca.pugleaf.net!inf.ethz.ch!newsReferences:
<danforth.829320260@Turing.Stanford.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!inf.ethz.ch!news From: zeller@inf.ethz.ch Newsgroups: comp.lang.oberon Subject: Re: Oberon Task Statistics (Windows) Followup-To: comp.lang.oberon Date: 16 Apr 1996 07:18:58 GMT Organization: Dept. Informatik, Swiss Federal Institute of Technology Message-ID: <4kvhl2$rgr@neptune.ethz.ch> References: <danforth.829320260@Turing.Stanford.EDU> NNTP-Posting-Host: warp.inf.ethz.ch Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit encoding X-Newsreader: NewsReader for Oberon (ejz)