Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import threading
- def socks():
- #do the thing
- def checktemp():
- #dothe thing every 5 seconds
- comsthread = threading.Thread(name='socks', target=socks)
- tempthread = threading.Thread(name='checktemp', target=checktemp)
- comsthread.start()
- tempthread.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement