From: Manu Prasad <manu@vividlogic.com>
To: linux-kernel@vger.kernel.org
Subject: Question on thread priorities in Linux
Date: Mon, 05 May 2003 18:28:28 -0700 [thread overview]
Message-ID: <3EB70FBC.7070105@vividlogic.com> (raw)
Hi,
I have a question regarding thread priorities in Linux.
The scenario is like this:
I have a thread 'A' in the Kernel which services external requests and
has to respond within a specified time(generally in milli secs).
I have some compute intensive calculation being done in the UserLevel
for which data is made available from the kernel. So I have a user
thread 'B' which blocks in the kernel, by making an IOCTL call, to
collect the data and service the compute intensive calculation when a
request comes. This calculation can take anywhere from 3-6 secs. After
calculation is completed in the UserLevel it passes the result of the
calculation by another IOCTL to the Kernel.
My problem is:
The kernel thread 'A' generally services requests within the stipulated
time(some milli secs). But sometimes when the request arrives during the
compute intensive calculation in the <<User Level the service is not
rendered in the stipulated time>> and sometimes take as long as the
actual completion of the compute intensive calculation(3-6 secs).
Isn't it that the Kernel thread preempts the UserLevel thread?
I am using linux 2.4.17.
Thanks for your help,
-Manu
PS: Could you please CC me the answer to this question.
reply other threads:[~2003-05-06 1:01 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=3EB70FBC.7070105@vividlogic.com \
--to=manu@vividlogic.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.