maximum of timers and opend file-desc in system

Hi,

Q1.
I see on http://qdn.qnx.com/support/docs/neutrino/utilities/p/procnto.html

-F number
The maximum number of file descriptors that can be open at the same
time.
The minimum allowable value is 100.
What does it mean for each process or for OS at all?

Q2:
who many timers could exist in the system, and pre each process?
Q3:
which is the timer presision (timer was opened with timer_create call)?

vasa

“vasa” <vv40in@rambler.ru> wrote in message news:9r9hh5$j1$1@inn.qnx.com

Hi,

Q1.
I see on > http://qdn.qnx.com/support/docs/neutrino/utilities/p/procnto.html

-F number
The maximum number of file descriptors that can be open at the same
time.
The minimum allowable value is 100.
What does it mean for each process or for OS at all?

Per process.

Q2:
who many timers could exist in the system, and pre each process?

No idea I’m afraid. Perhaps it is defined in time.h?

Q3:
which is the timer presision (timer was opened with timer_create call)?

Whatever you have your kernel click set to. Usually this is about 1ms, but
it can be changed. I don’t remember the exact call to query it, but I think
it’s ClockSomething.

Tom

Tom wrote:

“vasa” <> vv40in@rambler.ru> > wrote in message news:9r9hh5$j1$> 1@inn.qnx.com> …

Q2:
who many timers could exist in the system, and pre each process?


No idea I’m afraid. Perhaps it is defined in time.h?

Ahh, found it in limits.h. 32 it seems. Not sure whether that is per
process or not. How about a test?

#include
#include
#include
#include <time.h>
#include <signal.h>
#include <unistd.h>

using namespace std;

int main()
{
struct sigevent event;
SIGEV_NONE_INIT(&event);
int i = 0;
vector<timer_t> timers;
timer_t timer;
while (timer_create(CLOCK_REALTIME, &event, &timer) != -1)
{
timers.push_back(timer);
++i;
}
cout << "Timers created: " << i << endl;
for_each(timers.begin(), timers.end(), &timer_delete);
}

This actually shows it to be 65534!

Tom