| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Message-ID: | <003d01c0fe1c$1f7e3c80$0200a8c0@lifelesswks> |
| From: | "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au> |
| To: | "Greg Smith" <gsmith AT nc DOT rr DOT com>, |
| "Cygwin General MailList" <cygwin AT cygwin DOT com> | |
| References: | <3B37D1A6 DOT 39A2685 AT nc DOT rr DOT com> <03c701c0fdd7$82ddbde0$0200a8c0 AT lifelesswks> <3B37F19F DOT C9BCDA23 AT nc DOT rr DOT com> |
| Subject: | Re: pthreads works, sorta |
| Date: | Tue, 26 Jun 2001 18:43:49 +1000 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook Express 5.50.4133.2400 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
| X-OriginalArrivalTime: | 26 Jun 2001 08:32:06.0957 (UTC) FILETIME=[7C034DD0:01C0FE1A] |
----- Original Message ----- From: "Greg Smith" <gsmith AT nc DOT rr DOT com> To: "Cygwin General MailList" <cygwin AT cygwin DOT com> Sent: Tuesday, June 26, 2001 12:21 PM Subject: Re: pthreads works, sorta > Robert Collins wrote: > > > > > > My (heavily threaded) application runs approximately 100x > > > slower than under linux and proceeds to the point where the > > > program thrashes because it is calling pthreads functions > > > faster than the pthreads implementation can deliver (we're > > > talking _mutex_lock/unlock and _cond_wait/signal here). > > > > Condition variables we can't do much about here, other than trying to > > get down to the metal and rewrite em without OS support. I'm not keen to > > try that, for what I hope are obvious reasons. > > True. > I've just reviewed my reading, and it doesn't look as though critical sections are going to be _much_ faster. --> Greg, do you know that your issue is thread syncronisation performance, or performance of I/O or other posix calls in between ? You program shouldn't crash unless it manages to deadlock or trigger a race... certainly the pthread calls cannot happen except when your threads are active and have got cpu :]. How many concurrent threads and mutexs and cond variables are we talking here? Rob -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |