Resource unavailabilty on a syscall

From: selvakumar nagendran
Date: Fri Dec 31 2004 - 01:11:34 EST


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@xxxxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/