Multithreading | Sololearn: Learn to code for FREE!

+3

Multithreading

Why doesn't this code work? https://code.sololearn.com/ctdtgx3QkBll/?ref=app

8/22/2019 10:17:16 AM

Mohan Krishna

2 Answers

New Answer

+3

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):)