Sample code for the task distribution system (article under JGroupsArticles)