On Wed, May 5, 2010 at 8:56 AM, Massi <massi_srb at msn.com> wrote: > but this does not work, since the two threads share the same pid. Can > anyone give me a suggestion? Have you looked at os.fork ? http://docs.python.org/library/os.html#os.fork