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
Faking concurrency using Unix forks and pipes
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-05-30 (04:14)
From: Jonathan Bryant <jtbryant@v...>
Subject: Re: [Caml-list] Faking concurrency using Unix forks and pipes

On May 29, 2007, at 11:42 PM, Jon Harrop wrote:

> Has anyone implemented a parallel map function in OCaml using Unix  
> forks,
> pipes and maybe marshalling?

I've implemented a toy version of this, so I can say it does work and  
is not too hard, although I don't still have the code.  My OSP  
project is a concurrency library that would make implementing this  
pretty trivial though: it extends the Event module to work over UNIX  
& TCP sockets and to have a common interface for thread creation /  
forking / remote process creation.

> This seems like an easy way to get concurrency in OCaml...

It would also be nice to have a Apply in Parallel / Parallel List  
Comprehension syntax for it a la NESL (http://www.cs.cmu.edu/~scandal/ 

> -- 
> Dr Jon D Harrop, Flying Frog Consultancy Ltd.
> OCaml for Scientists
> http://www.ffconsultancy.com/products/ocaml_for_scientists/?e
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs