<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html40/loose.dtd"> <html> <head> <title>Module: multi_thread</title> </head> <body bgcolor="#ffffff"> <p><i><a href="../../../../index.html">Table of Contents</a></i></p> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <th rowspan="2" valign="top" align="left" width="10%" bgcolor="#88bbee"><font color="#000000">Module: multi_thread</font> </th> <th bgcolor="#88bbee" width="90%" align="right"><font color="#000000">../bkchem/oasa/oasa/graph/multi_thread.py</font> </th> </tr> <tr> <td> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="Functions">Functions</a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000"> </font> </th> </tr> <tr> <td> <a href="#run_in_threads">run_in_threads</a><br> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="run_in_threads"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">run_in_threads </font> </th> </tr> <tr> <td> <font color="#000088"><pre> run_in_threads ( function, attrs, processes=1, group_by=1, additional_attrs=None, kw_attrs=None, ) </pre></font> <p>function is the function to run, attrs a list of attrs for which to run the consecutively the function, additional_attrs and kw_attrs are attrs that are added to each call of function,<p> <em>group_by</em> means how many attributes should be processed in one thread, this is useful when a single run of the function is too fast and the overhead of starting a thread is too high, it is good to set this value so that a runtime of one group is higher than at least 100ms,</p> <p> <em>processes</em> is a number of parallel threads that should run.</p> </p> </td></tr> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="Classes">Classes</a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000"> </font> </th> </tr> <tr> <td> <table border="0" cellpadding="3" cellspacing="0"> <tr><td valign="top" align="left"><p><a href="multi_thread/CustomThread.html">CustomThread</a></p></td><td valign="top" align="left"></td></tr> </table> </td></tr> </td></tr> </table> </td> </tr> </table> <hr> <p><i><a href="../../../../index.html">Table of Contents</a></i></p> <font size="-2"><i>This document was automatically generated on Tue Dec 12 13:46:44 2006 by <a href="http://happydoc.sourceforge.net">HappyDoc</a> version 2.1</i></font> </body> </html>