mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: selvakumar nagendran <kernelselva@yahoo.com>
To: lkml.ThinkingInBinary@spamgourmet.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: finding process blocking on a system call
Date: Thu, 6 Jan 2005 20:13:54 -0800 (PST)	[thread overview]
Message-ID: <20050107041354.45351.qmail@web60603.mail.yahoo.com> (raw)
In-Reply-To: <e4cb1987050106133642b931ce@mail.gmail.com>

> You can't both block but have it added to the
> runqueue--blocking means
> it does not run... you either need to use
> non-blocking calls or two
> threads.  If you want to find the process, top can
> do this
> (interactively) or you can use the /proc filesystem.
> 

Hello,
   I accept that we can't have a process both blocked
and in the runqueue. See, I want to give a special
state to the process blocked on a particular resource
like semaphore as TASK_BLOCKED and I will not add it
into the wait queue. 
   If the scheduler picks up this blocked process
again, I will identify the process that is having the
semaphore and I will run that.  with this, I am giving
some timeslice of the blocked process to the process
having that resource so that it can release it soon.
  So, if a process blocks on the syscall, I will
change the state as TASK_MYSTATE. Since, a process may
block on a system call for many reasons, I am not able
to clearly figure out how can I do that? Can u help me
regarding this?

Thanks,
selva




		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

       reply	other threads:[~2005-01-07  4:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <e4cb1987050106133642b931ce@mail.gmail.com>
2005-01-07  4:13 ` selvakumar nagendran [this message]
2005-01-06 12:18 selvakumar nagendran
2005-01-06 16:03 ` Daniel Gryniewicz

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=20050107041354.45351.qmail@web60603.mail.yahoo.com \
    --to=kernelselva@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkml.ThinkingInBinary@spamgourmet.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

all inboxes | Powered by JetHome®