<div dir="ltr">Here is some code which runs multiple threads successfully on an xo. Look for "ServerThread":<br><br><div style="margin-left: 40px;"><a href="http://mediamods.com/public-svn/map-activity/Map.activity/map.py">http://mediamods.com/public-svn/map-activity/Map.activity/map.py</a><br>
</div><br><div class="gmail_quote">On Sat, Jul 19, 2008 at 10:26 PM, Shikhar <<a href="mailto:shikhar@schmizz.net">shikhar@schmizz.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I am trying to use threads in my activity. However, the UI locks up<br>
while the thread runs. Actually, it is somewhat strange what happens:<br>
the thread is already initialized and running, waiting on a Queue for a<br>
work request. After I make a request, this is when the UI locks up<br>
(although the request completes)<br>
<br>
I have tried both gtk.gdk.threads_init() and gobject.threads_init() in<br>
my activity initialization before I call super<br>
<br>
What am I missing?<br>
<br>
Hope not being very inane...<br>
<br>
Thanks,<br>
<font color="#888888"><br>
Shikhar<a href="http://lists.laptop.org/listinfo/sugar" target="_blank"></a><br>
</font></blockquote></div><br></div>