Hmm, all depends what you're trying to achieve. I personally avoid conventional threading in Python from the outset, and use Stackless instead.

Have you possibly considered using Twisted (see http://twistedmatrix.com/trac/ and http://twistedmatrix.com/documents/current/core/examples/)

On 01/12/2010 19:07, ydjango wrote:
http://www.python.org/dev/peps/pep-0371/

I am aware this is a Django forum not python. But many python experts
are on this forum, so I though I would ask.

When would you use Python (2.6) threading module or multiprocessing
module?

It seems in general python multiprocessing module should be preferred
over threading because of GIL unless threads need to share data.

Though both API being similar the switch  from coding perspective is
trivial.

( it is kind of opposite in Java.)


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to