From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA247C7618B for ; Mon, 29 Jul 2019 17:29:01 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 92BC2206DD for ; Mon, 29 Jul 2019 17:29:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="EGoPjycT"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="vLEqVUym" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 92BC2206DD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92) (envelope-from ) id 1hs9S8-0007TL-Av; Mon, 29 Jul 2019 13:28:52 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hs9S6-0007TF-Et for kernelnewbies@kernelnewbies.org; Mon, 29 Jul 2019 13:28:50 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5F4D02213F; Mon, 29 Jul 2019 13:28:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 29 Jul 2019 13:28:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=2Yc3uFR3x35s/j6KXCRrXdIgCQ0 8MpQoXaWN70rvoKo=; b=EGoPjycTcevlKmV5IG018yJJspnJCouOnQxjYp99IVU YwtbZkj0BaDK0lfrqJfHdJqD1T6A3iAbU7iFj9SAG7zAAl1QHol8MaKGpKUmsbuK Kn9UZ2OP6VDCXh7C+ITpBo5gt6PmAS44tv/H+GoJikGXmElQ6he5r9QSSEy3BV2h pRP7vVrBKkKpYnvQ8GNlsBun0mvMo20U1QTmaRQlA9D5Dyf3uSpkpUUpjcG/3BXn zGLJBIn7FwnrCUS9o3KTAFQli/3NyEasa8Cw/PzF6MYw9QF/gCw+eDjuThF8sQ0k z8MYQkGOOqdSQK3gEJg732aUlghdscT3Kdk0lCKSF9w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=2Yc3uF R3x35s/j6KXCRrXdIgCQ08MpQoXaWN70rvoKo=; b=vLEqVUymgFU6O26M5Ffrx7 jKSceps8dxLBzxiDN0vUQ5OHx79ssWIB9B+l5THDnpObX4Sl8ZDR0Sjfkk178uTv SSAYkigfM1D1RbDvOz+qkecVn2mQEGYReqoPFNDeS4bCOBOTyW2/Ns1HVvMIl4Vu P+BHw1pxuVpHRkHWfus7vmPcX60Zsu0o9Iy+KV2S12vsA2tN3jy7q6jGMfuaLp7l Ume4JSvaJN/Bl73vsUh7hOVtY+4/ErafQ1S62jhZ4lJkvnaishpoK8JC87c5TwYu 0aNQyKmhSd/teWRR+NAKMDWOJcOCkhKlWxSJxEFikUUhZNai06rAwJ3eyDs9XTZg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrledugdduudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujggfsehttd ertddtredvnecuhfhrohhmpefirhgvghcumffjuceoghhrvghgsehkrhhorghhrdgtohhm qeenucfkphepkeefrdekiedrkeelrddutdejnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hgrhgvgheskhhrohgrhhdrtghomhenucevlhhushhtvghrufhiiigvpedu X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id A49B8380083; Mon, 29 Jul 2019 13:28:48 -0400 (EDT) Date: Mon, 29 Jul 2019 19:28:46 +0200 From: Greg KH To: Muni Sekhar Subject: Re: wait_event()\ wait_event_interruptible()\ wait_event_interruptible_timeout() and wake_up() Message-ID: <20190729172846.GA18355@kroah.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Cc: kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Mon, Jul 29, 2019 at 10:48:57PM +0530, Muni Sekhar wrote: > Hi All, > > Let us assume that multiple processes are waiting on wait_event()\ > wait_event_interruptible()\ wait_event_interruptible_timeout(), which > process gets woken up on calling wake_up()?? > > I presume wake_up() picks one process, but is there any algorithm to > pick which process? try it and see! :) _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies