public void run() {
        try {
	        	
	        	if (BenchmarkClient.available.tryAcquire()){
	        	
		        	Socket clientSocket = new Socket(hostname, portnumber);
		        	PrintStream out = new PrintStream(clientSocket.getOutputStream(), true);
		        	Scanner in = new Scanner(clientSocket.getInputStream());
		        	out.println("hello world");
		            while (in.hasNextLine()){
		            	
			    	
			    		
				    	if (in.nextLine().equals("HELLO WORLD")){
				    		BenchmarkClient.count++;
				    		//BenchmarkClient.count.incrementAndGet();
					    }
		
		            }
		            
				    in.close();
				    out.close();
				    clientSocket.close();
		            BenchmarkClient.available.release();
	        	}
	        	
        }     
            catch (IOException e) {
            e.printStackTrace();
        }
	

	}