Exchanger
Java · 1 note
- 6.18 Exchangerhistorical
Exchanger: Used to exchange data between two threads. The data flow is bidirectional. That is, if there are two threads, Thread1 and Thread2, Thread1 sends one piece of data to Thread2, while Thread2 also sends one piece of data to Thread1.