Interprocess communication, communication threads

Interprocess communication (IPC): pipes, shared memory, semaphores, message queues, [socket, Stream] can be used across a host

Inter-thread communication: shared variables, message communication.

    Implementation: volatile, use the Object class wait () and notify () method, countDownLatch, ReentrancLock and Condition, the basic blocking and wake LockSupport achieve between threads

 

References:

Thread communication to achieve:

https://blog.csdn.net/jisuanji12306/article/details/86363390

Guess you like

Origin www.cnblogs.com/hekiraku/p/12097073.html