English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] BeOS Thread or Systhread libs
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-03-29 (13:06)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: [Caml-list] BeOS Thread or Systhread libs
> Well, while still trying to compile findlib I ran into a problem with 
> the Mutex module. I know that BeOS has no pthread support for now... 
> but isn't it possible to port the scheduler.c file to BeOS.

I looked briefly into this some time ago, and it seemed easier to port
the "system threads" library (the one that builds upon OS-level
threads) than the "bytecode threads" library (the one that performs
its own scheduling at the level of the virtual machine, i.e. the
scheduler.c file).

One reason is that the bytecode-level scheduler is rather
Unix-specific, in particular it assumes that select() works on all
kinds of file descriptors, not just sockets, and I think this is one
point where BeOS departs from Unix.

If anyone wants to attempt a BeOS port of the system threads library,
I can answer questions about this, but I lack time and motivation to
do it myself.

- Xavier Leroy
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr