From: John Max Skaller <skaller@ozemail.com.au>
To: Xavier Leroy <xavier.leroy@inria.fr>
Cc: Noel Welsh <noelwelsh@yahoo.com>, caml-list@inria.fr
Subject: Re: [Caml-list] Using threads in compiled code
Date: Sat, 20 Apr 2002 02:09:49 +1000 [thread overview]
Message-ID: <3CC0414D.8030800@ozemail.com.au> (raw)
In-Reply-To: <20020419094208.C11763@pauillac.inria.fr>
If you're using threads with sockets, you might want to do what I did:
I took the library routine that launches a process on a connect
[establish_server .. seems to be defunct now ..]
and replaced enough code to make it launch a thread instead.
I used the John Reppy style channels from the Threads library Event
module for communication.
My application was designed
to provide an simulation of a telephone system.
Getting the logic and timing right was very tricky --
coding it in Ocaml was very easy, those Reppy channel things
are magic. The hardest part was managing termination ..
[I'd never written a serious multithreaded app before ..
Stevens + Ocaml makes a fine team :-]
BTW: if you're looking at mobile agents .. JoCaml
is worth examining... in fact, its worth examining
even if you're not :-)
--
John Max Skaller, mailto:skaller@ozemail.com.au
snail:10/1 Toxteth Rd, Glebe, NSW 2037, Australia.
voice:61-2-9660-0850
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-04-19 16:09 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-18 7:45 Noel Welsh
2002-04-18 8:44 ` Remi VANICAT
2002-04-18 14:44 ` Markus Mottl
2002-04-18 17:06 ` [Caml-list] Proselytizing Charles Martin
2002-04-18 20:10 ` David Chase
2002-04-19 2:25 ` Brian Rogoff
2002-04-19 7:58 ` Xavier Leroy
2002-04-19 14:32 ` David Chase
2002-04-19 15:21 ` Sven
2002-04-22 8:38 ` [Caml-list] CamlTk/Windows Christophe Macabiau
2002-04-18 19:10 ` [Caml-list] Using threads in compiled code james woodyatt
2002-04-18 21:05 ` Oliver Bandel
2002-04-19 7:42 ` Xavier Leroy
2002-04-19 16:09 ` John Max Skaller [this message]
2002-04-23 13:16 ` Noel Welsh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3CC0414D.8030800@ozemail.com.au \
--to=skaller@ozemail.com.au \
--cc=caml-list@inria.fr \
--cc=noelwelsh@yahoo.com \
--cc=xavier.leroy@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox