469,616 Members | 1,696 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

twisted - locking threads when deferToThread is used

Hi,
I'm writing an application which will be periodically testing servers.
I will have a global list of these servers(domain names) and need to do
few tasks.
1) DNS checks - I will use asynchronous twisted-names for it
- in case there is a difference comparing to the list it should update
the list(then also in DB)
2) ICMP pings - should be also possible to do it asynchronously
3) Blocking function which will be pinging with SIP requests
- here I will use function deferToThread to make it non-blocking.

Questions:
1) How do I lock each thread when writing to a global list in twisted?
2) How will I put together all three results mentioned above in the
global list
- is it by using function callLater ?
3) Could you help me with a rough skeleton of this application, please?

Thank you,
Lada
Aug 8 '07 #1
0 1403

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Diez B. Roggisch | last post: by
2 posts views Thread by Christopher Subich | last post: by
2 posts views Thread by GregM | last post: by
3 posts views Thread by Morten Wennevik | last post: by
7 posts views Thread by Shak | last post: by
6 posts views Thread by looping | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.