smithfield 0 Newbie Poster

May I ask you for help, how can I compare the elements of an array. I have to use threads, but I don't know much about it. For every 2 elements I create a thread and it compares them. The thread writes 0 in the element that is smaller and 1 in the element that is bigger. That's the algorithm but I don't know how to realize it as code. Can anyone help me, please?