Mar-16-2017, 08:33 AM
Im having a hard time understanding Threading.
I have 2 pieces of code.
The first one (code a) works perfectly fine using Threading
The second one (code b) works but threading does not work
code a = pastebin AfHR9JMn
code b = pastebin yqKFGeXw
Code a creates 100 threads and starts them all
Code b creates thread 1, starts it, finishes it, then creates thread 2.
Im am doing the same for both so i dont understand why i am getting 2 different results.
Requirement: Code b should create 100 threads and run them simultaneously.
fyi: code b requires a file called indexed.csv and at least 100 urls in it. if you dont want to make you own use this one:
pastebin dtrsAwSF
urls are taken from generation from code b
I have 2 pieces of code.
The first one (code a) works perfectly fine using Threading
The second one (code b) works but threading does not work
code a = pastebin AfHR9JMn
code b = pastebin yqKFGeXw
Code a creates 100 threads and starts them all
Code b creates thread 1, starts it, finishes it, then creates thread 2.
Im am doing the same for both so i dont understand why i am getting 2 different results.
Requirement: Code b should create 100 threads and run them simultaneously.
fyi: code b requires a file called indexed.csv and at least 100 urls in it. if you dont want to make you own use this one:
pastebin dtrsAwSF
urls are taken from generation from code b