470,636 Members | 1,616 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

Conditions vs Events

Le Monde De Python,

I've been working a lot with python threads from the threading module.
Specifically, when is it better to use a condition object vs an event
object?

It seems to me that, at least superficially, I can just about use these
two mechanisms interchangeably. The only real difference I can see is
that I can call isSet() on an event in the case that an event is
triggered before wait() is called. Are there any differences?

Also, does calling wait reset some type of "notify" in a condition
object like it does in an event object?
Anyhow, thanks for your help!

-carl

--

Carl J. Van Arsdall
cv*********@mvista.com
Build and Release
MontaVista Software

Apr 19 '06 #1
0 745

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by twins | last post: by
15 posts views Thread by Karsten Schramm | last post: by
2 posts views Thread by Igor | last post: by
???
reply views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.