As I sit through the aftermath of Sandy, I have resumed my personal quest to learn python. One of the things I am struggling with is running multiple processes. I read the docs on threading and am completely lost so am turning to the most excellent tutors here (and thanks for all the help, past, present and future btw!).<div>
<br></div><div>In what ways can one run multiple concurrent processes and which would be considered the "best" way or is that case dependent?</div><div><br></div><div>Example:</div><div><br></div><div>I'm working on programming a robot in Python. The bot has an Arduino board that receives sensor input and sends the data to a laptop which is the "brain" of the bot via pySerial and uses this incoming sensor data to help determine state. State is used in decision making. The laptop runs a program that we'll call the Master Control Program in a nod to Tron. The bot also has a chat program, computer vision, some AI it uses to mine the web for information, several other functions. Each of these  concurrent programs (thus far all python programs) must run continuously and feed data to the MCP which receives the data, makes decisions and sends out appropriate action commands such as for movement, change of state, conversation direction, what to research, etc.</div>
<div><br></div><div>So, to return to the original question, how does one run multiple concurrent processes within python?</div><div><br></div><div>regards, Richard<br clear="all"><div><br></div>-- <br>
        
        
        <dl><dt>
        
        
        


<p align="LEFT" style="margin-bottom:0in;line-height:0.18in">
<font color="#333333"><font size="4" face="comic sans ms, sans-serif">sic
gorgiamus allos subjectatos nunc</font></font></p></dt></dl><br>
</div>