[Tutor] threads

Praveen Pathiyil ppathiyi@cisco.com
Thu, 5 Jul 2001 18:50:42 +0530


Hi Brendon,

        I guess your question can't be more betterly and simply answered
than what Roeland has done. I would just add a link and nothing more :-))

        http://www.serpentine.com/~bos/threads-faq/

        Gives some basic idea about the terminologies involved.

Regards,
Praveen.

----- Original Message -----
From: "Brendon" <bren@europe.nl.com>
To: <tutor@python.org>
Sent: Thursday, July 05, 2001 5:30 PM
Subject: [Tutor] threads


> there seems to remarkably little documentation on this subject, so i'll
ask
> here. how do you thread a program? i.e., to keep it very basic a program.
>
> def thread_one():
>   r1 = 4+5
>   #pass r1 to thread two
>
> def thread_two():
>   r2 = 3+4
>   r3 = r1 + r2
>
> #call both threads simultaneously
>
> granted, this is completely useless, but i just need to get the idea :)
> --
>
> "if we live by an "eye for an eye and a tooth for a tooth"...before long,
> the whole world will be blind and toothless."
>          --Tevye, Fiddler on the Roof
>
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>