<pre style="font-weight: bold;"><tt><big><tt><big>You'll have to write multi-threaded code if you want it to run multiple <br>threads :)<br>(Unless, of course, Web.py supports threads?)</big></tt></big></tt></pre>Luke, what is the easiest way to run multithreaded programs from webpy<br>is there a page that has common gotchas and pitfalls for doing the same.<br><br><br><b><i>Luke Paireepinart &lt;rabidpoobear@gmail.com&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> emilia12@mail.bg wrote:<br>&gt; Hi all,<br>&gt;   <br>Hi!<br>&gt; my question is probably about the threads... I have two IPs<br>&gt; and i want to run web.py server for each IP in the same<br>&gt; time from one script file. I can run them in two command<br>&gt; boxes (and this works) but i want to do this from one ;-)<br>&gt;<br>&gt;   <br>if you run two instances of the python interpreter (like you're doing <br>when you start
 two command windows,)<br>they're executing in different threads, it's just that the threads are <br>OS level instead of application level.<br>Windows automatically switches between the two instances of the <br>interpreter and gives them both time to do something.<br>This is why you can run an E-mail application at the same time as your <br>web browser.<br>I suspect that OS-level threading in this way would be more efficient in <br>regard to speed, but<br>it'd use more RAM because two interpreter instances would be loaded into <br>memory at the same time.<br>I don't know what web.py is.<br>Is it something you wrote?<br>You'll have to write multi-threaded code if you want it to run multiple <br>threads :)<br>(Unless, of course, Web.py supports threads?)<br>What's your experience with Python?<br>Do you need help with threads in general? threads in Python?<br> &gt;Maybe i can do this with 'threads' but how ? is there some<br> &gt;example ??<br>There are plenty of examples of
 threaded code that you could find by <br>googling around,<br>or do you mean 'is there some example [of multi-threading the web.py <br>program]??'<br>If the latter case, I guess you could find that by googling as well, if <br>it exists.<br><br>&gt; regards<br>&gt; e.<br>&gt;   <br><br>Cheers,<br>-Luke<br>_______________________________________________<br>Tutor maillist  -  Tutor@python.org<br>http://mail.python.org/mailman/listinfo/tutor<br></blockquote><br><p>&#32;
                <hr size=1>Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. <a href="http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com"> Great rates starting at 1&cent;/min.