Use ArrayBlockingQueue for waiting for the server to start.