1.

What Is Exchanger In Java Concurrency?

Answer»

Exchanger MAKES it easy for two threads to exchange data between themselves.

Exchanger provides a SYNCHRONIZATION point at which two threads can pair and SWAP elements. Exchanger waits until two separate threads CALL its exchange() method. When two threads have called the exchange() method, Exchanger will swap the objects presented by the threads.

Exchanger makes it easy for two threads to exchange data between themselves.

Exchanger provides a synchronization point at which two threads can pair and swap elements. Exchanger waits until two separate threads call its exchange() method. When two threads have called the exchange() method, Exchanger will swap the objects presented by the threads.



Discussion

No Comment Found