From: Jeff Hartmann <jhartmann@valinux.com>
To: imran.badr@cavium.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: how to check whether other threads are waiting ..
Date: Fri, 10 Aug 2001 15:49:22 -0600 [thread overview]
Message-ID: <3B7456E2.4090507@valinux.com> (raw)
In-Reply-To: <001701c121e3$612a27d0$6401a8c0@IMRANPC>
Imran Badr wrote:
> Hi,
>
> How can I find out in my kernel code that if mutiple threads are waiting for
> a particular semaphore?
>
> Thanks,
> imran.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
I haven't looked at the semaphore implementation for other arch's
closely, but on the ia32 there is a waitqueue in struct semaphore.
Examine that to detrimine if there are processes waiting, how many, etc.
-Jeff
prev parent reply other threads:[~2001-08-10 21:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-10 20:04 [PATCH] Too many disk writes in 2.4.8-pre8 Peter Osterlund
2001-08-10 21:28 ` how to check whether other threads are waiting Imran Badr
2001-08-10 21:49 ` Jeff Hartmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3B7456E2.4090507@valinux.com \
--to=jhartmann@valinux.com \
--cc=imran.badr@cavium.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.