Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Real time threading sample Codes

 
Santosh Kumar Nayak
Ranch Hand
Posts: 143
Eclipse IDE IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can some one help me with the real time coding samples for Threads ?

Any useful links
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume that you mean real world examples, not real-time examples, and I further assume that you're familiar with all the examples in the Java Tutorial (if not, then that's where you should start).

A servlet container like Tomcat would be an example - it handles lots of concurrent threads (assuming that there are requests coming in in parallel, of course :-).
 
Santosh Kumar Nayak
Ranch Hand
Posts: 143
Eclipse IDE IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have already completed with java tutorials.

I am looking for some kind of code repository/sample code for Threads.
 
Stefano Carniel
Greenhorn
Posts: 11
C++ Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why don't you try to make your own sample? think to a real situation and try to realize it with thread. You could start, for example, to make a thread that add elements to a queue and another one that extract them...If you completed Java tutorial, you should be able to do this
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic