title: how to implement multithreaded Breadth-first search in java?
body: <p>I've done the breadth-first search in a normal way.
  now I'm trying to do it in a multithreaded way.
  i have one queue which is shared between the threads.
  i use synchronize(LockObject) when i remove a node from the queue ( FIFI queue )
  so what I'm trying to do is that.
  when i thread finds a solution all the other threads will stop immediately.</p>