java multithreading difference between synchronous and asynchronous

     For Liezi: such as A and B to reach the end point

  1. A synchronization is only finish a certain period and then stopped to let B began to take a while and then stopped, let go A. And so forth. Simple to understand, it must be after the implementation of a program to perform the following program.

  2. Is asynchronous, A and B may be the same time in the same time to catch the end, the sequence is not present at this time, that is, two procedures may be performed simultaneously, called asynchronous.

Guess you like

Origin blog.csdn.net/qq_29231037/article/details/86596887