forwarded message from Christian Tismer (fwd)

Wiger Ulf ulf.wiger@REDACTED
Sat Apr 19 13:42:22 CEST 2003


OK, here it is, for what it's worth.

tasklets:context(N) will trigger N*2 context switches as 
two processes run a busy loop each, yielding before each
iteration.

tasklets:calls(N) will run a dispatch loop, calling a fun() and
returning a new fun() for the next iteration.

Both functions use timer:tc(). 

/Uffe


----- Original Message ----- 
From: "Jay Nelson" <jay@REDACTED>
To: <erlang-questions@REDACTED>
Sent: den 18 april 2003 03:09
Subject: Re: forwarded message from Christian Tismer (fwd)


> Ulf, post your code.  I would like to try it on my 500MHz
> Celeron running RedHat 7.2 and on my 350MHz Mips
> Cobalt Qube 2.  I hope to soon get a mini-ITX with a
> fanless 500MHz Via Eden.
> 
> Meaningless benchmarks are always fun to try.
> 
> jay
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tasklets.erl
Type: application/octet-stream
Size: 817 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20030419/2eb22638/attachment.obj>


More information about the erlang-questions mailing list