If i put a printf in one of the threads in the process, does the LWP where the thread is running get blocked and other thread can get chance to run?
Thanks.
Hi,
I'm trying to understand the REALTIME CLASS in solaris:
All the documentation on net are specifying that :
The rt_tqsecs and rt_tqnsecs members are used for getting or
setting the time quantum associated with an LWP or group of
LWPs. rt_tqsecs is the number of seconds in the time quantum...
Hi bomberman,
Thanks for your response however i did not see anything in this link about how can we see total number of FDs currently used by a process?
Anyway i found out at least one way: using lsof utility we can find out about the FDs currently used by a process!
Yes, you can find out where the executable exists in the current system enviornment but i think "limit" is not a executive file!
I had tried which but system could not find the path for it.
I did not find out where(path) is limit command. I guess this is a built-in shell command so there is no path for it; it is just a input to a shell!
Anyway Happy Holidays!
In my application of the process is getting out of file descriptors( MAX is configured as 64 ).
Is there any way i can call some function(s) in a C program to find out number of file descriptors currently used in a process?
Thanks.
I tried $output = `limit`;.. still not working!
It just printing: The output was:
"limit" command sets or gets limitations on the system resources available to the current shell and its descendents
When I issue limit command from shell I get (what I’m expecting )as
cputime...
Thanks mikepro1 for the reply. Yeah i tried system('limit') but i think it's not working.
Here is what i did:
#!/usr/local/bin/perl
system('limit');
I'm expeting it will run the limit command but i'm not getting any out put.
when i tried
#!/usr/local/bin/perl
system('ls');
Its working fine!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.