Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

threads  RSS feed

 
josephine chen
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am planning to experiment with threads but not sure how to proceed ?Please guide me with a example.
 
paul wheaton
Trailboss
Posts: 22553
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm going to move this thread to the Threads and Synchronization forum where I'm certain it will get more attention.
 
paul wheaton
Trailboss
Posts: 22553
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Threads in java are very easy.
Suppose you want to have two threads dumping stuff to the screen at the same time:

Run it and see what happens.
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Infinite loop Paul...
How shan was unregistered but could post a message?

------------------
azaman
 
Marcela Blei
Ranch Hand
Posts: 477
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"shan",
your name is not valid as per the Javaranch name conventions. Please refer to the document located here
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!