kqpro
March 9th, 2013, 11:49 PM
I am new to multi-thread programming, are there any examples that and shows me to create 2 or more threads. Then each of these thread will do some type of job. Like if I pass a series of numbers into the program through command line, and then thread 1 will calculate the sum, other thread will calculate smallest number, and another one will find the average.. etc. At the end, the parent thread should just output these worker threads's exited values.