I'm writing a small application, composed by a gui and a couple of buttons. When the user clicks one of them, the program must download a webpage, do a couple of matching and return a value to the gui.
The question is, I must start a new thread every time the user clicks on that button, or there's an alternative to threads for those kind of small tasks ( mainly, download contents from the web)?