From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31463 invoked by alias); 22 Mar 2009 21:51:58 -0000 Received: (qmail 31454 invoked by uid 22791); 22 Mar 2009 21:51:57 -0000 X-SWARE-Spam-Status: No, hits=4.1 required=5.0 tests=AWL,BAYES_50,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org Received: from smtp4-g21.free.fr (HELO smtp4-g21.free.fr) (212.27.42.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 22 Mar 2009 21:51:52 +0000 Received: from smtp4-g21.free.fr (localhost [127.0.0.1]) by smtp4-g21.free.fr (Postfix) with ESMTP id 850BA4C80FB for ; Sun, 22 Mar 2009 22:51:44 +0100 (CET) Received: from BOUZIN (bar06-4-82-234-183-108.fbx.proxad.net [82.234.183.108]) by smtp4-g21.free.fr (Postfix) with ESMTP id 5B7584C8037 for ; Sun, 22 Mar 2009 22:51:42 +0100 (CET) From: "Michel Pacilli" To: References: <49C192FE.8070809@homemail.com.au> <00c801c9a889$66077340$321659c0$@com.br> <49C427D7.3090505@homemail.com.au> In-Reply-To: <49C427D7.3090505@homemail.com.au> Subject: good job! Date: Sun, 22 Mar 2009 21:51:00 -0000 Message-ID: <005101c9ab38$604c4820$20e4d860$@pacilli@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit x-cr-puzzleid: {05A1DE15-6917-4488-897F-7BB6E558EDA7} x-cr-hashedpuzzle: A7xL A8rT B/oE DKzG DQMQ DTpU EXKK FP8N FiPP FuaX GUmH Hxhx H3dK IdWg Iw1c JT/g;1;cAB0AGgAcgBlAGEAZABzAC0AdwBpAG4AMwAyAEAAcwBvAHUAcgBjAGUAdwBhAHIAZQAuAG8AcgBnAA==;Sosha1_v1;7;{05A1DE15-6917-4488-897F-7BB6E558EDA7};bQBpAGMAaABlAGwALgBwAGEAYwBpAGwAbABpAEAAZgByAGUAZQAuAGYAcgA=;Sun, 22 Mar 2009 21:51:33 GMT;ZwBvAG8AZAAgAGoAbwBiACEA X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2009/txt/msg00019.txt.bz2 Hi, Just a few words to say that I've just test elapsed time between interthread message passing, which is important for my app. CondVar vs Events :) and it's very good !! Here a result on 2 core, 1 thread on each one : The wrapping have a very small impact ! Regards, Michel PACILLI COND_VAR : ******************************************************* [ Histogramme sur 20 bins, accumule sur 100000 mesures ] Tmin = 6 us Tmax = 9222 us 6 a 467 : 99942 467 a 928 : 20 928 a 1389 : 15 1389 a 1850 : 9 1850 a 2310 : 2 2310 a 2771 : 3 2771 a 3232 : 2 3232 a 3693 : 2 3693 a 4154 : 0 4154 a 4614 : 0 4614 a 5075 : 0 5075 a 5536 : 1 5536 a 5997 : 1 5997 a 6458 : 0 6458 a 6918 : 1 6918 a 7379 : 0 7379 a 7840 : 0 7840 a 8301 : 0 8301 a 8762 : 0 8762 a 9222 : 1 EVENT : ******************************************************* [ Histogramme sur 20 bins, accumule sur 100000 mesures ] Tmin = 5 us Tmax = 2429 us 5 a 126 : 99861 126 a 248 : 126 248 a 369 : 3 369 a 490 : 3 490 a 611 : 2 611 a 732 : 0 732 a 854 : 1 854 a 975 : 1 975 a 1096 : 0 1096 a 1217 : 0 1217 a 1338 : 0 1338 a 1459 : 0 1459 a 1581 : 0 1581 a 1702 : 0 1702 a 1823 : 0 1823 a 1944 : 0 1944 a 2065 : 0 2065 a 2186 : 0 2186 a 2308 : 1 2308 a 2429 : 1