Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
RE: [Caml-list] Why systhreads?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-11-26 (19:23)
From: Gregory Morrisett <jgm@C...>
Subject: RE: [Caml-list] Why systhreads?
>Factors of 10 are always nice :-)  Just kidding.  What I meant is the
>following: assume making the Caml runtime system thread-safe 
>entails a 25% slowdown on program execution.  (This can easily 
>happen if e.g. we have to lock a mutex at each heap 

I would assume that allocation (in the nursery) is done
via a pointer bump, and that it would be easy enough to
have separate nurseries for threads.  Then the only 
synchronization that's needed is for GC.  At least, that's
how we did it with SML/NJ.

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: