I need to know if there is a way I can just use multithreading in a single line, rather than the full program.
That is, I want to run the program as a single thread, but in the middle of it I want one particular line to be multithreaded. I want to multithread something like this:
br.open("http://www.google.com.pk/search?q="+str(m))
So, basically I want to open all the links (m
can assume 50 distinct values), and I don't want to open them one after the other. I want to open all 50 at once! If I open them one by one, it slows the process down and I want to avoid that.