[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] RTAI and RTLinux




>  For what it is worth. Steve P. sent me a perfectly polite and 
>  useful explanation of how his memory allocator works and how it 
>  returns a failure instead of suspending when memory is exhausted. 
> 
>  I do continue to think that RT software should be simple and 
>  not rely on dynamic allocation of resources -- since this is not
>  compatible with determinism.  

I don't agree.
The world - where the program runs - is undeterministic.
Program must adapt itself to various circumstances including lack of
resources. Let's say I have N message buffers in a pool. What if
there is no more free buffer?
Running out of memory is just a situation what the task must handle
if necessary. This is their problem, not yours.

Regards

Gabor