illumifin interview question

Threads, how to create threads? which is best way?