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=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 0A1C9C433FF for ; Tue, 6 Aug 2019 11:43:06 +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 BD31E20717 for ; Tue, 6 Aug 2019 11:43:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BD31E20717 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu 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 1huxrA-0008SP-LU; Tue, 06 Aug 2019 07:42:20 -0400 Received: from omr1.cc.ipv6.vt.edu ([2607:b400:92:8300:0:c6:2117:b0e] helo=omr1.cc.vt.edu) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1huxr7-0008SI-EC for kernelnewbies@kernelnewbies.org; Tue, 06 Aug 2019 07:42:17 -0400 Received: from mr5.cc.vt.edu (mr5.cc.vt.edu [IPv6:2607:b400:92:8400:0:72:232:758b]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id x76BgEc4008058 for ; Tue, 6 Aug 2019 07:42:15 -0400 Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mr5.cc.vt.edu (8.14.7/8.14.7) with ESMTP id x76Bg96e005226 for ; Tue, 6 Aug 2019 07:42:14 -0400 Received: by mail-qk1-f199.google.com with SMTP id t124so75589952qkh.3 for ; Tue, 06 Aug 2019 04:42:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=GboDfFCyh7899vMf5gMYtCKyT/aq0OI4yf8m3M1ANF8=; b=dUcbe1yYNap4Y6QqnehIG/EPPtDXM76tWbv2ImxIxLdkclMVaye24+kyqxjeQLp9n3 BaSuF5MmoANfVapbhekDx+nZAdbntrlFv8gxp7zxaMhZXTB6gJLrLixygCqbL6TnoPgQ mhsHE/pqEJysDHZWJxyubJerh9KOt84MP+NEYweIxR/U5/kpwA0GsdEu/FJenbtvWPWi oJEv7iuCwsvpwuxj/HBhtf2QTvcPhR2zLn3ghaJGTBA87l9GGpZlFUp67Vj/m/dxFWh6 I3rc+wwsfyLhYjSdUuKcdsUGULPQKrjoFP7t5jmir+GsBLt2M91SjVbdwZWJ1z7SRn53 aE/w== X-Gm-Message-State: APjAAAXyHY17jaRbJZJgCNI3f4NzXH5xh0lGDpLpOehWOjTAXpL72NPi 6EiQiw/UN9gz3l9LiuQXBm4lQRGw7t0xSfID6ffevyiKnUucTY8EJ7Dxq4Jdlo0aEP3EBmyxqxC nzV+YIVQM3h8DsHFGaFGb1hPFWE+4cuRI6EwPFyM= X-Received: by 2002:a0c:b4ae:: with SMTP id c46mr2558535qve.230.1565091729778; Tue, 06 Aug 2019 04:42:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbd3UugW/MRwN2l5kLzQFQ5hISzZh+3V13hcWdjpWSzrJl0zu1jG5pkb0wD1KW3qHssoLylw== X-Received: by 2002:a0c:b4ae:: with SMTP id c46mr2558518qve.230.1565091729409; Tue, 06 Aug 2019 04:42:09 -0700 (PDT) Received: from turing-police ([2601:5c0:c001:4341::359]) by smtp.gmail.com with ESMTPSA id y20sm39161880qka.14.2019.08.06.04.42.07 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 06 Aug 2019 04:42:07 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Muni Sekhar Subject: Re: wait_event()\ wait_event_interruptible()\ wait_event_interruptible_timeout() and wake_up() In-Reply-To: References: <22208.1564424822@turing-police> Mime-Version: 1.0 Date: Tue, 06 Aug 2019 07:42:06 -0400 Message-ID: <6613.1565091726@turing-police> 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: multipart/mixed; boundary="===============7229952727121056351==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============7229952727121056351== Content-Type: multipart/signed; boundary="==_Exmh_1565091726_5648P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1565091726_5648P Content-Type: text/plain; charset=us-ascii On Tue, 06 Aug 2019 14:15:53 +0530, Muni Sekhar said: > If they do different things, does the waiting threads wakeup order is > the same in which they were enqueued (FIFO order)? You missed the point - if you have (for example) something that's waiting for mouse I/O and something that's waiting for a network packet, under what conditions will they be using the same wait event? --==_Exmh_1565091726_5648P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBXUlnjgdmEQWDXROgAQJGwhAAlBuMlc02NI118tqfjJO791iaxzm9zsSo Brxd1hRY675aFMWE4wRk1+HzGLhzgwHrJuF/CZRa8S9chiXQ8FhJSIMCKDOhAVWR 1CvGBQM9WpnhS2/nq9SrpdjmB7LFX9AcNdvVcXMBnEZT/GUiD0DVLRo6Ykg0wv+0 yMiVLz1Y1pGc0eGDH2UFcOBf9Xc1+dkBWomv1qdlTbR+AbM3fVNSEqUuf7aUdxKq H2beXERz93d3pODXxoa7PN+2SDKNbINYu83mQpIbdBT/uoHEfP+Vf/qBpxmbfQTq VCQ+t6FHlaG8dHGmbDDlofNauHNd5CagKfBUlX7LQ6SUc0D3g24anTvvryWax92R GPvYLH+OOGWkCxwsn0Izp0u7HUkeHdE7CkGXsn6d+YPce7WMONpIUE479kjmPlW1 uvU9LiFXtzXnC6uphFmPu2q570vC2o32omXC3K+SAodrbU/pNj4O9ti0OGPRzDT/ NSdfp6gPaRJEhUXlXxSXaoxbDhHAjUNBaq5Q/WPOaeTVMqdqCEuYwCbuSUT/8ut8 i5AuPrKmyd0d4PCz47Xz1SO4O4JjL/0q3p4SYbsvmlzLrUsB28RnXbxTwO3RbDt2 RTI7eeTgsmpggBSxjAYOAvro/9bN9yjr/zqGupSLUVb3OHoahSUCQP7EKHl55Py+ UdpsuX4kbKo= =MeMk -----END PGP SIGNATURE----- --==_Exmh_1565091726_5648P-- --===============7229952727121056351== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============7229952727121056351==--