Le jeudi 09 février 2006 à 10:14 -0600, Harmon Nine a écrit :
> It may also be that, when every thread finishes with a particular item in the 
> stream Xs the given item could be garbage collected (as Xs is a list).
> That is, when every thread finishes using the "0" in Xs, the "0" can be 
> garbage collected, then the "1", the "2", etc., as every thread finishes 
> using these items, on down the line.

Just a note : worst-case scenario might be that the first thread
finishes reading before the last has even begun its work. Also tracking
which thread "eats" the "leftmost" elements of the stream is problematic
since the stream can't know who is reading him ... Moreover, one of the
thread could store or "give" the tail of the stream to some long-living
entity (mutable store ? some distributed entity ? dont know exactly).
Then, better leave it the the GC.

(sorry for the random and fuzzy thoughts).

> 
> -- Harmon



_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to