同步是两个或更多线程可以安全地访问共享资源而不会覆盖彼此工作的方式。 http://java.sun.com/docs/books/tutorial/essential/concurrency/sync.html