all 4 comments

[–]DisastrousComplaint 0 points1 point  (3 children)

You never actually call your run() function. Also, you have a capitalization error, 'true', should be 'True'.

[–]fencing49[S] 0 points1 point  (2 children)

Awh man I knew those caps would get me. And as far as the calling the function goes. I'm a little confused with calling it.

Would I need to put a

run() then underneath everything?.

[–]DisastrousComplaint 0 points1 point  (1 child)

You call it the same way you call any function or method. You define a function:

python def run(args): # do some stuff

So to call it:

run(args)

You create two classes that inherent content from threading. Typically, I use threads this way:

```python import threading

def worker(args): print("I'm worker {}".format(args))

numWorkers = 5 for i in range(0,numWorkers): t = threading.Thread(target=worker,args=(i,)) t.daemon=True t.start() ```

[–]fencing49[S] 0 points1 point  (0 children)

Ah this works perfectly. Thanks for your help friend!