lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelvin Tan" <kel...@relevanz.com>
Subject Re: Indexing and Duplication
Date Fri, 22 Mar 2002 07:06:54 GMT
<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:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message