From: "Eugeny S. Mints" <emints@ru.mvista.com>
To: linux-kernel@vger.kernel.org
Subject: kernel sema implementation question
Date: Wed, 16 Jun 2004 19:22:06 +0400 [thread overview]
Message-ID: <40D0659E.5040900@ru.mvista.com> (raw)
Hi Community!
Could anybody please answer the question about kernel semaphore up()
routine. I use kernel 2.6.6 on i386 but the question is about arch
independent part.
Arch dependent up() implementation leads to try_to_wake_up () which
calls resched_task() if the task been woken up preempts the current task.
The question is - when the context switch actually occures?
(resched_task only sets the bit but doesn't switch anything)
Thanks,
Eugeny
reply other threads:[~2004-06-16 15:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=40D0659E.5040900@ru.mvista.com \
--to=emints@ru.mvista.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox