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 <khame...@gmail.com> wrote: > 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 > ├─{python},4925 > ├─{python},4926 > ├─{python},4927 > ├─{python},4928 > ├─{python},4929 > ├─{python},4930 > ├─{python},4931 > ├─{python},4932 > ├─{python},4933 > └─{python},4934 > > Q2: How many threads of these 12 children are really indexing here? > > Q3: If only 1 thread is indexing, would someone please modify this > example for indexing with more than 1 thread? > > Thanks in advance, > best regards > -- > Valery A.Khamenya >