How many Timers Can I Create???

Kamen Penev kamen at penev.net
Mon Apr 12 16:04:21 UTC 2004


Joel Sherrill wrote:

> Alex wrote:
>
>> Hi,
>>
>> Does RTEMS has a confifured maximum number o timers it supports, or 
>> it naturally crashs when too much timers are created?
>>
>> In an test I am doing I have the following:
>>
>> #define CONFIGURE_MAXIMUM_POSIX_TIMERS 150
>> #define CONFIGURE_MAXIMUM_ 150
>>
>> Then I have source code to create 100 timers, but when the program 
>> starts it hangs, even before starting sreating the first timer. The 
>> timers are created with the timer_create POSIX function.
>
>
> Sounds like the BSP was unable to assign the memory for that much
> workspace.


I see this in confdefs.h (ss-20030417):

#define CONFIGURE_MEMORY_FOR_POSIX_TIMERS(_timers) \
  ((_timers) * \
   ( 0 ) )

Maybe this is why?


Kamen




More information about the users mailing list