|Bytecode level thread implementation firstname.lastname@example.org (Gabriele Farina *DarkBard*) (2004-05-24)|
|Re: Bytecode level thread implementation email@example.com (Tomasz Zielonka) (2004-05-30)|
|Re: Bytecode level thread implementation firstname.lastname@example.org (Eliot Miranda) (2004-05-30)|
|From:||Tomasz Zielonka <email@example.com>|
|Date:||30 May 2004 13:23:47 -0400|
|Posted-Date:||30 May 2004 13:23:47 EDT|
Gabriele Farina *DarkBard* wrote:
> I'd like to implement a OS independent threading system. I thought to
> manage threads directly inside the bytecode genereted by my compiler.
> Do you think it could be interesting? There's any opensource language
> that implements this kind of feature?
This is a known idea. It works quite well, so expect to find many such
Check Erlang and byte-code compiled OCaml.
IIRC, You can use this kind of threading system in some Java
Haskell compiler GHC uses user-level threading for both byte-code and
native-code. Task switching happens when the program allocates memory
(Haskell programs tend to allocate quite often) or uses concurrency
.signature: Too many levels of symbolic links
Return to the
Search the comp.compilers archives again.