<snip>

> I'd suggest to reconsider the use of a Hashtable to communicate
> between threads. I know a Hashtable is thread safe, but some form of queue
> is more like the thing one would expect there. Also, with a bounded queue
> a limit on memory usage is easily enforced because the feeding thread
> will wait as long as needed. For more about queues:
> http://g.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html
> The faq entry there about producer and consumer threads convinced me
> to use bounded queues after I got some out of memory crashes...

Thanks Ype, I'll definitely take your advice. Thanks for the link too...

Regards,
Kelvin

>
> Have fun,
> Ype
>
> --
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to