这题目没有看明白!
write a program that shares an integer array between 2 separate thread. each thread is given a segment of the array to use and may not write outside its given segment. one of the thread should initializeits values to random number in the rang 1..100 and the other thread should toss a coin N times and record the result of each toss( n equals the segment sive ).the main program should wait for the threads to finish and print the values of the array前面是要两个线程吧数组分成两半,之后又要跑硬币,随即数了!