r1 - 29 Mar 2007 - 22:21:37 - OferNaveYou are here: OSAF >  PyLucene Web  >  APIDocs > APIDocsThreadingSupport

Threading Support

The garbage collector implemented by the Java runtime support in libgcj insists on having full control over the creation of threads used by it. At the moment, it cannot be told about a thread 'after the fact'.

Therefore all Python threads, except for the main thread, using any PyLucene code must be an instance of PythonThread. A PythonThread instance is an extension of a Python thread delegating the creation and initialization of the actual operating system thread to libgcj. There are in fact two thread objects, one Python, one Java, for the same operating system thread. The Python and Java runtimes are fully aware of that thread and view it as one of their own.

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Open Source Applications Foundation
Except where otherwise noted, this site and its content are licensed by OSAF under an Creative Commons License, Attribution Only 3.0.
See list of page contributors for attributions.