Why 12 child threads in samples/ThreadIndexFiles.py ?

2010-03-25 Thread Valery Khamenya
Hi all, Q1: Why 12 threads in samples/ThreadIndexFiles.py ? I have no idea how this example http://svn.apache.org/repos/asf/lucene/pylucene/trunk/samples/ThreadIndexFiles.py starts more than 1 thread: └─python,4922 ThreadIndexFiles.py ./corp ├─{python},4923 ├─{python},4924 ├─{

Re: Why 12 child threads in samples/ThreadIndexFiles.py ?

2010-03-25 Thread Valery Khamenya
OK, initVM() immediately brings 11 child threads. So, we have 1 indexing thread. Now only Q3 is left: could someone please modify this example for indexing with more than 1 thread? best regards -- Valery A.Khamenya On Thu, Mar 25, 2010 at 11:19 AM, Valery Khamenya wrote: > Hi all, > > Q1: Why

Re: Why 12 child threads in samples/ThreadIndexFiles.py ?

2010-03-25 Thread Andi Vajda
On Thu, 25 Mar 2010, Valery Khamenya wrote: Q1: Why 12 threads in samples/ThreadIndexFiles.py ? Why 12 ? Only one is created explicitely. The others you found are probably java's or lucene's. I have no idea how this example http://svn.apache.org/repos/asf/lucene/pylucene/trunk/samples/Thr