tokee / lucene-solr

High cardinality faceting (SOLR-5894)
http://tokee.github.io/lucene-solr/
7 stars 1 forks source link

Add shared thread pool executor #28

Open tokee opened 9 years ago

tokee commented 9 years ago

For heavy lifting a thread pool shared across the JVM would guard against excessive threading. In order to avoid deadlock due to recursive calls, Threads created by the pool could be wrapped in class MarkedThread extends Thread {}; when a new Thread is requested, the pool checks for Thread.currentThread() instanceof MarkedThread.