Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # this is from The Python
- # Standard Library by example
- # ISBN13: 9780321767349
- import threading
- import logging
- logging.basicConfig(level=logging.DEBUG,
- format='(%(threadName)-10s) %(message)s',
- )
- class MyThread(threading.Thread):
- def run(self):
- logging.debug('running')
- return
- for i in range(5):
- t = MyThread()
- t.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement