****i want to display thread1 thread2 thread1 thread2 in java but i am not that good at thread i understand that i have to create three class main class, thread1 and thread2 class and i know i have to use wait() or notify() method ..i anyone help just give to good understanding on how to do like sample code or just blueprint of class ****

Recommended Answers

All 2 Replies

This is a good tutorial on Threads.
You will probably understand more, than if I would have sent you a code-snippet.

Hope it helps.

What does the "display" have to do with the execution of threads?

commented: Did you ask me? +1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.