Hi all,
my brain hurts once again..I might be boring the forum by asking too many questions on priority..Actually i am using a getpriority(which,who) function to get the scheduling priority in a C application in LINUX.
i am using the following way
getpriority(getpid(),0);
this function usually has to return either ESRCH or EINVAL i am actually looking for an answer ESRCH but this thing always return me EINVAL( which is invalid arguments)..
Can anybody help me in usage of this function..
thanks
logic4fun
P.S. ESRCH is No such process
my brain hurts once again..I might be boring the forum by asking too many questions on priority..Actually i am using a getpriority(which,who) function to get the scheduling priority in a C application in LINUX.
i am using the following way
getpriority(getpid(),0);
this function usually has to return either ESRCH or EINVAL i am actually looking for an answer ESRCH but this thing always return me EINVAL( which is invalid arguments)..
Can anybody help me in usage of this function..
thanks
logic4fun
P.S. ESRCH is No such process