Skip to content

Instantly share code, notes, and snippets.

@giuserpe
Created November 15, 2016 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giuserpe/073ae099a65ade71bbd73cc8fe4721f2 to your computer and use it in GitHub Desktop.
Save giuserpe/073ae099a65ade71bbd73cc8fe4721f2 to your computer and use it in GitHub Desktop.
class myThread1 (threading.Thread):
def __init__(self, threadID, name, counter):
threading.Thread.__init__(self)
self.threadID = threadID
self.name = name
self.counter = counter
def run(self):
progress ()#self.name, self.counter, 1)
class myThread2 (threading.Thread):
def __init__(self, threadID, name, counter):
threading.Thread.__init__(self)
self.threadID = threadID
self.name = name
self.counter = counter
def run(self):
firme_in_calce ()#(self.name, self.counter, 1)
def debug (arg=None):
myThread1(1, "Thread-1", 0).start()
myThread2(1, "Thread-1", 0).start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment