my guess is, that this is a rather simple questions for those amongst us, who ever used threads and threads::shared before.
I have an array which holds servernames which should be portscanned by multiple threads. My thought was that each thread could theoretically pop a line off the array and scan that host and print the result.
Unfortunately I can't figure out how to start, as I never had worked with threads before and all my attempts failed so far, giving me nothing but errors.