Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

python threads?



On Sun, 2007-05-27 at 14:43 -0400, Martin Owens wrote:
> Eww, although that explains a lot; I tried to do threading for my http
> requests so my app wasn't waiting around for http round trips before
> loading.

This is a perfect legit use of python threading, IMHO.  Since the call
is likely to block while waiting for the IO (make sure you don't set up
non-blocking sockets or you'll lose the benefit), why not let some other
code execute?

> Now I get segment faults intermittently and a whole bunch of other weird things.

Stack traces and execution termination or actual seg faults?  Seg faults
are an indication of bigger problems - you shouldn't be able to seg
fault the python interpreter without outside help (an external C lib,
hardware problems, etc)

-- 
A: Yes.                                                               
> Q: Are you sure?                                                    
>> A: Because it reverses the logical flow of conversation.           
>>> Q: Why is top posting annoying in email?

Cole Tuininga
colet-KCgK2vT7wad/90uGnh1m2w at public.gmane.org
http://www.code-energy.com/


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.







BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org