Hello! I have a project that has to do the following actions.It is a client server aplication.The server make a connection and waits for clients to be conected.The server has some number pairs stored in an array.When a client connects,the server sends him the pair of numbers,the clients sums them and sends back their sum.I am sure that i have to use thread.And i need i var that is the index of the pairs.What kind of index do i have to use for indexing to synchronise my thread?