Browse thread
Marshaling of custom blocks and threads
- Jocelyn Serot
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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 |
Hello, 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 ThreadUnix.read/Marshal.from_string. This program works ok for small data sets (typically less than 100 floats) but crashes when the array size increases. Cheers, Jocelyn -- 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 73.40.73.30 - Fax: (33) 04 73.40.72.62 ......................... .... http://wwwlasmea.univ-bpclermont.fr/Personnel/Jocelyn.Serot/Welcome.html Valid e-mail: remove underscores (sorry, this is prevention against junk mail