This is easy:
check your argument and create an array of threads. That's it!