Parallel processing in JAVA

Hello Everyone,

I want to connect multiple computers together. i want a functionality like one Main Processor are working as a server and others are working as a client processor.
So, 1. How to connect all processors together??
2. how to allocate a particular task to particular processors by main processor (Server). ??