From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128846 invoked by alias); 7 Aug 2019 18:01:04 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 128837 invoked by uid 89); 7 Aug 2019 18:01:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=screw, insane, thousands, intensive X-HELO: nihcesxwayst06.hub.nih.gov Received: from nihcesxwayst06.hub.nih.gov (HELO nihcesxwayst06.hub.nih.gov) (165.112.13.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Aug 2019 18:00:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nih.gov; i=@nih.gov; q=dns/txt; s=NIH; t=1565200859; x=1596736859; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=b9SsejID8Uk3+yfG6Ym/XOsAyZx7SFzLZNXcWUyFjXU=; b=GU7VHUNvsWZXuHANd0sGfuH/uIcmmz110YF4IPFb3RjsGjCu9oPqB4KZ kP+On7preK3K+Mxit6/bFC+kWfcPTPDA/xThNvP4DSqmhVD8j1RZrnPbU dOxykf2rAIEQcu8L9NijXCmM/VMsVFuplNDNJpKJchhfUWpRGfpDtaYMx YSnDjENQRlqZvAw4UuHJTg9W8hmqrG48wtGGK8emJU0n1Amqcz3dEjR6X 8oNNsRGNP9FXv7q+YVPzRGrdhBL6vJ6ITrBsyyH8ZosHHSA7o7aXH07aA Oa7wQzG8cJHWm4S0kJQb9kw3/tNg+SFGF89IOK8x9aj8/GAFzOwq21/MM w==; IronPort-SDR: njGz/iu4lcMnvBlRqKiMIKc0cFjf9vcF0qLeTCJVRSrxEY2tA14QdGS9hRdP/6Nszqi3rmCSGv 4wSfRThz18Gg== Received: from uccbx01.nih.gov (HELO ces.nih.gov) ([156.40.79.151]) by nihcesxwayst06.hub.nih.gov with ESMTP/TLS/ECDHE-RSA-AES256-SHA384; 07 Aug 2019 14:00:47 -0400 Received: from uccbX02.nih.gov (156.40.79.152) by uccbX01.nih.gov (156.40.79.151) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 7 Aug 2019 14:00:47 -0400 Received: from GCC01-CY1-obe.outbound.protection.outlook.com (156.40.79.134) by uccbX02.nih.gov (156.40.79.152) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 7 Aug 2019 14:00:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GzPOQn+nLUngqPwPKK1k8gvJdmDO0lS/Sv0PORBfldR4A3dc8cT37WT1WU8FGD4o8kDW6ggpk6QzDB3PASrZT+k2/CGYRqeBzdd53rO0qlvUHjE9TrWMAfU/IMuoRJx05ssbYyZPKm1nVy7Klr+WpDuZcKfEerdgppasenAWSPxcgu9zAFZ8vCoF3cjBWM83HrFPvpLMb4jKwv0bIYleJate3eHkwn1Jqgmq19FgJzzvw5is17OiMa2JBzyX8cVdRB4fxVOAaDxOYufnbetvMG3laTJozra16ItKIT4Sq1ds5qmbgruoAAW8pPcbVogoN0NQ2+W4EMiMuroIQX0XFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=b9SsejID8Uk3+yfG6Ym/XOsAyZx7SFzLZNXcWUyFjXU=; b=TB5mGcV7isLXdlS1B5usLQCmqvkAYO2IsvRoCONgYUK7uU5wqBwA4EgmBHVXanoqJY4LAg18/Lsy+5zMNu0WlV8nTKl3/hBKaAicNF60mfuzK12zbejK8S4kqx3PAL+Pz3l+eELVByIGANkf7aNNGTyAtf87PqVGRwlKML68ZcKqxte6uI4T+1N53yZn7NgqXiJ7OpnkheQKcVNPG8slW5AtqGcexB7RM5UGOhI2Yv5j2oBajsCSx7vP7YoQybC/l6tCZLXtwOXloGjm8Cllhy3LAJa4f8t2G6gtcgreW2rlraKrv96EdIabo/BcmA1M0LcYxvPcmK4kG5ZRt6v5Dw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ncbi.nlm.nih.gov; dmarc=pass action=none header.from=ncbi.nlm.nih.gov; dkim=pass header.d=ncbi.nlm.nih.gov; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nih.onmicrosoft.com; s=selector1-nih-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=b9SsejID8Uk3+yfG6Ym/XOsAyZx7SFzLZNXcWUyFjXU=; b=d8S8CwxsVTwqboL6RygKMh9B1Nwx4U12rJBffmfMH10XK98EEYCjQSCD5zP++YGNu+Bs4WVqSe5ocShlrVEnTFSauiooyyf5mZuFIWu6pn6XwzreXqsdsytDV9AGjsT7nnxgxSqPOKeRD2EDd5jC/tLfOA6plsddxPhTfwzDTdY= Received: from BL0PR0901MB4308.namprd09.prod.outlook.com (52.135.47.83) by BL0PR0901MB2435.namprd09.prod.outlook.com (52.132.19.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.16; Wed, 7 Aug 2019 18:00:46 +0000 Received: from BL0PR0901MB4308.namprd09.prod.outlook.com ([fe80::8052:3866:283f:306c]) by BL0PR0901MB4308.namprd09.prod.outlook.com ([fe80::8052:3866:283f:306c%3]) with mapi id 15.20.2157.015; Wed, 7 Aug 2019 18:00:46 +0000 From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin" Reply-To: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" To: "'cygwin@cygwin.com'" Subject: Re: semget() returns EAGAIN? Date: Wed, 07 Aug 2019 18:01:00 -0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=lavr@ncbi.nlm.nih.gov; x-ms-oob-tlc-oobclassifiers: OLM:318; x-ms-exchange-senderadcheck: 1 x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: f5TmENpGFchDTlER34pCJDRy61N/Xuscs80JiSByOJTEzXqXx3KRFNIRpZBuhP4Q Return-Path: lavr@ncbi.nlm.nih.gov X-SW-Source: 2019-08/txt/msg00108.txt.bz2 > The number of parallel open pipes, for instance. By default, 10 > worker threads handle the load and up to 62 processes can be handled > in parallel. Hmm, so it is not an OS-imposed restriction... Then I don't understand why= it wasn't made to "just work": to create a thread per client until that works, without having to have any = pre-set limits. Fail only if the thread creation cannot be done. > Apart from that, the preferred way to use semaphores is to use POSIX > semaphores, that is, sem_open and friends. Well, that's not entirely up to me, the app is already using (quite stably!= ) SYSV semaphore _arrays_ so switching to POSIX would require some porting (and intensive bug checking -- provided that the= app is being used on thousands of hosts). Besides, TBH it looks like the POSIX-devising people were smoking some kind= of weed when coming up with sem_timedwait() using _absolute_ timeouts! That's way too insane. They also tried to screw up S= YSV sems by saying they get created not necessarily initialized (what's the point?! it totally defeats the purpose!) TG, by th= en many systems had already had them implemented decently (reset to 0 upon inception), so that "clause" did not have any cha= nce to actually realize. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple