Multithreading | Sololearn: Learn to code for FREE!



Why doesn't this code work?

8/22/2019 10:17:16 AM

Mohan Krishna

2 Answers

New Answer


Firstly, mythread(1) is not the same as mythread1(). Secondly, class declarations should not include arguments (you have class mythread1(thread):, when it should just be class mythread1:). The arguments should be moved to a constructor function (def __init__(self, thread):)