delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/03/14/07:44:00

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 14 Mar 2008 13:42:54 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Re: pthread_mutex_lock/unlock performance?
Message-ID: <20080314124254.GK5306@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20080313093028 DOT GA31841 AT calimero DOT vinschen DOT de> <20080314114713 DOT GA2730 AT msvoboda>
MIME-Version: 1.0
In-Reply-To: <20080314114713.GA2730@msvoboda>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Mar 14 12:47, Mojmir Svoboda wrote:
> morning, Corinna
> 
> > > the thing is that cygwin's pthread_mutex_lock performs quite lazily it
> > > takes about seven times more than using native critical section.
> 
> > Bookkeeping overhead? 
> 
> excuse my unfamiliarity with the matter, but i have no exact idea what
> bookkeping could be. could you elaborate the answer more, please?
> or point me to some article/documentation where i can read more?

Only in the source, sorry.  I'm also not exaclty familiar with the
pthread code in Cygwin.  I only look into it when a serious problem
crops up.

> > Just have a look into the Cygwin source.
> 
> yes, that's first place i tried to look, but got little disoriented
> with the _ and __ versions of the pthread_mutex_lock. i've eventually
> finished in __pthread_lock. am i on the right track?

Er... probably.

> > If you want to speed up Cygwin's pthread implementation, feel free to
> > contribute:  http://cygwin.com/contrib.html
> 
> well i'm using windows and cygwin for few months so i quite don't feel 
> ready... yet ;)

No worries.  Everyone of us started with moaning and hair pulling over
the existing code ;)


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019