ErlCee++

Ulf Wiger (AL/EAB) ulf.wiger@REDACTED
Tue Jun 8 18:26:31 CEST 2004


todd wrote:
> 
> Using a global heap for sending messages inside a process 
> containing threads
> doesn't have to be expensive.

True, but doing this would require some fairly heavy 
redesign of the current VM, since all BIFs and the garbage
collector have to be reentrant.

I believe this paper on the topic is still fairly relevant:
http://www.erlang.se/publications/xjobb/0089-hedqvist.pdf

/Uffe
 
> Ulf Wiger (AL/EAB) wrote:
> 
> >Luke Gorrie wrote:
> >  
> >
> >>Side notes:
> >>
> >>  Linux 2.6 does one thousand context-switches per second, spends
> >>  absolutely bugger-all CPU to do it, and AFAIK the 
> scheduler is O(1).
> >>
> >>  Memory is cheap.
> >>    
> >>
> >
> >Yeah, but spawning processes and sending messages between processes
> >is *far* more expensive than in Erlang.
> >
> >/Uffe
> >
> >  
> >
> 



More information about the erlang-questions mailing list