mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: selvakumar nagendran <kernelselva@yahoo.com>
To: bert hubert <ahu@ds9a.nl>
Cc: linux-kernel@vger.kernel.org
Subject: Resource unavailabilty on a syscall
Date: Thu, 30 Dec 2004 22:08:45 -0800 (PST)	[thread overview]
Message-ID: <20041231060845.72677.qmail@web60609.mail.yahoo.com> (raw)
In-Reply-To: <20041230221356.GB15202@outpost.ds9a.nl>

Thanks for ur help,
   For a syscall to complete successfully, a process
should acquire the particular resource like
filelock,semaphore key etc. Now, I want to determine
whether a process blocked only due to the
unavailability of a semaphore key or a file lock etc.
I accept a process may block on a syscall for many
reasons. But I want to determine it for resource
starvation alone. How can I do that?
Do u have any suggestions regarding this?

Regards,
selva

--- bert hubert <ahu@ds9a.nl> wrote:

> On Wed, Dec 29, 2004 at 08:52:36PM -0800, selvakumar
> nagendran wrote:
> 
> >     A process can be blocked while executing a
> syscall
> > in the light of some resources needed. Now, I want
> to
> > find out whether a process has been blocked while
> > executing a particular syscall or it has finished
> it
> > successfully? If it was blocked I want to perform
> some
> > operation on it. Can anyone help me regarding
> this?
> 
> This question is fraught with difficulty. For one
> thing, many many system
> calls will block for a short time, which you would
> probably not describe as
> 'blocked', even though this was true for a few
> milliseconds.
> 
> You did not entirely specify why you want to do
> this, there may be better
> solutions to your problem.
> 
> bert
> 
> -- 
> http://www.PowerDNS.com      Open source, database
> driven DNS Software 
> http://lartc.org           Linux Advanced Routing &
> Traffic Control HOWTO
> 



		
__________________________________ 
Do you Yahoo!? 
Dress up your holiday email, Hollywood style. Learn more. 
http://celebrity.mail.yahoo.com

      parent reply	other threads:[~2004-12-31  6:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-30  4:52 Finding whether a process blocked while executing " selvakumar nagendran
2004-12-30 22:13 ` bert hubert
2004-12-31  6:08   ` Resource unavailabilty on " selvakumar nagendran
2004-12-31  6:08   ` selvakumar nagendran [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=20041231060845.72677.qmail@web60609.mail.yahoo.com \
    --to=kernelselva@yahoo.com \
    --cc=ahu@ds9a.nl \
    --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

all inboxes | Powered by JetHome®