Hi,
I want to do this task and i have a problem.
there is one array of constant length and many threads are trying to fill this array simultanously. Since this array is shared among these threads you need to apply synchronization in right region.
After the array is filled completely the average of the array elements should be calculated and printed in the console.
this is my question:
1)filling array is my region synchronization .i don't underestand , why i should use join method when i have synchronization .because synchronization means one
thread should do it's work and when it's work is finished another
thread can come.am i true?
thanks
zohreh