Java Multi-Threading synchronization interview question

The multi-threading synchronization questions always concentrate on a few keywords: wait, notify, notifyAll, synchronized, volatile.

The following question is the hardest, I ever met. The thread t1 should print integer number from 1–52, the thread t2 should print character from A-Z, the question is how to let the final result to be 12A34B56C… by implement Printer class.

(The Printer class is already finished by the way)

Like what you read? Give Jacob su a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.