GC, the simple solution

Walter Bright newshound at digitalmars.com
Fri Jun 9 01:12:59 PDT 2006


Sean Kelly wrote:
> Walter Bright wrote:
>> The approach most real time programmers use to deal with this is to 
>> preallocate all needed data before entering the real time section, and 
>> the real time section does no malloc's or free's.
> 
> This is certainly the easiest and probably the safest method.

Yup. It gets the job done.

Real time threads should be considered a very valuable resource, and as 
such all possible computation should be removed from them and put into 
non-realtime threads.



More information about the Digitalmars-d mailing list