Home Python: Multiple threads that can cross-communicate
Reply: 0

Python: Multiple threads that can cross-communicate

user389
1#
user389 Published in April 26, 2018, 5:19 pm

I want to run two separate functions that loop at constant time intervals, that run at the same time.

Function1 needs to loop every 60 seconds. I then want to trigger the start of Function2 from Function1. Function2 then loops every 5 seconds. At a certain point I want to stop Function2.

What is the best solution for this? Thanks for any help.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.556602 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO