From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA05842; Wed, 21 Apr 2004 16:53:29 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA05827 for ; Wed, 21 Apr 2004 16:53:28 +0200 (MET DST) Received: from post.bourget.univ-savoie.fr (post.bourget.univ-savoie.fr [193.48.120.73]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i3LErRjq011948 for ; Wed, 21 Apr 2004 16:53:27 +0200 Received: from univ-savoie.fr (d85.lama.univ-savoie.fr [193.48.123.85]) by post.bourget.univ-savoie.fr (8.12.3/jtpda-5.4) with ESMTP id i3LEuk3M020282 ; Wed, 21 Apr 2004 16:56:46 +0200 Message-ID: <40868BC5.1080206@univ-savoie.fr> Date: Wed, 21 Apr 2004 16:57:09 +0200 From: Christophe Raffalli User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe Raffalli CC: caml-list@inria.fr Subject: Re: [Fwd: Re: [Caml-list] Scheduling thread problem kernel 2.6] References: <407FB3F5.1060703@univ-savoie.fr> In-Reply-To: <407FB3F5.1060703@univ-savoie.fr> X-Enigmail-Version: 0.83.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigAE313E3A95A6134D6DAFFEDB" Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang) X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; raffalli:01 raffalli:01 univ-savoie:01 caml-list:01 openpgp:01 2440:01 3156:01 preempt:01 posix:01 modif:01 redraw:01 glsurf:01 glsurf:01 posix:01 savoie:01 X-Attachments: type="application/pgp-signature" name="signature.asc" name="signature.asc" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigAE313E3A95A6134D6DAFFEDB Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Christophe Raffalli wrote: > > > Here is the final picture: > > I invistigated the following modifications: > > A) let preempt = () instead of Thread.yield () in thread_posix.ml (modif > de OCaml) > > B) adding proper enter/leaving_blocking_section in glut (file wrap_glut.c) > > C) using a timer instead of an idle function for the interactive thread > (I need to redraw the surface when it is moving and I do it event when > it is not moving ;-). > In fact, I did not test GlSurf competing with another CPU intensive Thread. In this case, on a kernel 2.6, it is necessary to do modification A for GlSurf to get some CPU. What it the rôle of the tick_thread with posix_thread ? -- Christophe Raffalli Université de Savoie Batiment Le Chablais, bureau 21 73376 Le Bourget-du-Lac Cedex tél: (33) 4 79 75 81 03 fax: (33) 4 79 75 87 42 mail: Christophe.Raffalli@univ-savoie.fr www: http://www.lama.univ-savoie.fr/~RAFFALLI --------------------------------------------- IMPORTANT: this mail is signed using PGP/MIME At least Enigmail/Mozilla, mutt or evolution can check this signature --------------------------------------------- --------------enigAE313E3A95A6134D6DAFFEDB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAhovFSQDyWB/+xBwRAveaAKDgMRjMsR01i2q8TFdkZLPwJnRQ+ACeJv7Q rNygwGyY+U0YSjADNTygJ4I= =hvRe -----END PGP SIGNATURE----- --------------enigAE313E3A95A6134D6DAFFEDB-- ------------------- 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