Created
November 15, 2016 00:35
-
-
Save giuserpe/073ae099a65ade71bbd73cc8fe4721f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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