caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David Brown <caml-list@davidb.org>
To: Christophe Raffalli <raffalli@univ-savoie.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Scheduling thread problem kernel 2.6
Date: Tue, 13 Apr 2004 12:48:54 -0700	[thread overview]
Message-ID: <20040413194854.GB27613@davidb.org> (raw)
In-Reply-To: <407B9D6F.70800@univ-savoie.fr>

On Tue, Apr 13, 2004 at 09:57:35AM +0200, Christophe Raffalli wrote:
> 
> Message posted to comp.os.linux.misc and caml-list.
> 
> I am having a scheduling problem with a Caml program that uses two threads:
> - one CPU intensive thread
> - one interface thread (using Glut + OpenGL) and often doing nothing

What wrappers are you using to call to the interface.  Are there any
blocking calls in it?  You might check the wrappers to these calls to
make sure that they call enter_blocking_section, and
leave_blocking_section.  Otherwise, the entire ocaml runtime will be
blocked.

Dave

-------------------
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


  reply	other threads:[~2004-04-13 19:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-13  7:57 Christophe Raffalli
2004-04-13 19:48 ` David Brown [this message]
2004-04-14  5:58   ` Christophe Raffalli
2004-04-14  8:11     ` Daniel Bünzli
2004-04-14  9:21       ` Christophe Raffalli
2004-04-14 11:46         ` Daniel Bünzli

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=20040413194854.GB27613@davidb.org \
    --to=caml-list@davidb.org \
    --cc=caml-list@inria.fr \
    --cc=raffalli@univ-savoie.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;
as well as URLs for NNTP newsgroup(s).