streams & multiple readers
Aurélien Campéas
aurelien.campeas at logilab.fr
Thu Feb 9 15:55:59 CET 2006
Hello,
pp 258-259 of CTM are about multiple readers for streams ...
local Xs S1 S2 S3 in
thread Xs={Generate 0 150000} end
thread S1={Sum Xs 0} end
thread S2={Sum Xs 0} end
...
end
this implies that the stream a) is not really consummed by the threads,
hence b) the 150000 elements reside in memory c) it looks quite
difficult how to decide when to release them
I'm really puzzled with this aspect of streams ... (I hope this isn't a
FAQ).
Cheers,
Aurélien.
More information about the mozart-users
mailing list