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
Marshaling of custom blocks and threads
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2000-11-28 (10:31)
From: Jocelyn Serot <jserot@l...>
Subject: Marshaling of custom blocks and threads

Can s/o please confirm whether the module Marshal (and especially its
usage to serialize custom blocks) is thread-safe in Ocaml 3.0 ?
I remember reading sth about a pb with bytecode threads and marshaling
in a previous version of Ocaml but cannot determine surely whether
the pb has been fixed since.

The reason i ask follows :  i have a program with (bytecode) threads
exchanging data (float arrays)  with Marshal.to_string/ThreadUnix.write and
This program works ok for small data sets (typically less than 100
floats) but crashes when the array size increases.



E-mail: Jocelyn.Serot@l_a_s_m_e_a.u_n_i_v-bpclermont.fr .....................
S-mail: LASMEA - UMR 6602 CNRS, Universite Blaise Pascal, 63177 Aubiere cedex
Tel: (33) 04 - Fax: (33) 04 .........................
.... http://wwwlasmea.univ-bpclermont.fr/Personnel/Jocelyn.Serot/Welcome.html
Valid e-mail: remove underscores (sorry, this is prevention against junk mail