Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "David McClain" <barabh@qwest.net>
To: <caml-list@inria.fr>
Subject: [Caml-list] Re: SysThreads
Date: Fri, 30 Nov 2001 10:53:45 -0700	[thread overview]
Message-ID: <009401c179c7$f5065410$210148bf@dylan> (raw)

Well I ran into another problem here with a threaded DLL backend for a
COM/OLE server. Since the incoming DLL requests are happening on arbitrary
threads that have never been seen by the OCaml code (OCaml did not start
them), these foreign threads are beyond the machinery of the OCaml threading
engine. There are no control blocks established for them.

Secondly, with a well controlled environment and only one thread making
requests = the starter thread, I find that the use of the Reppy protocol in
Event becomes unreliable when many small slave threads are spawned. Perhaps
the system thread mechanism is too heavy handed for this approach. Reppy got
by in CML with discarding the stack, using the heap for a spaghetti stack,
and making lightweight objects under his sole control for threading. He also
has GC incorporate thread scavenging.

My fear is that M$ system threads are just too clunky for Reppy-style
threading in Event.ml.  I already realize that we can't fully implement
Reppy's speculative threading, since the GC can't scavenge useless
threads -- i.e., not yet dead, but will never be awekened for running.

So anyway, I welcome any thoughts by the group...

- D.McClain, Sr. Scientist, Raytheon Systems Co., Tucson, AZ
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


                 reply	other threads:[~2001-11-30 21:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='009401c179c7$f5065410$210148bf@dylan' \
    --to=barabh@qwest.net \
    --cc=caml-list@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