File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Threads and Synchronization and the fly likes Real time threading sample Codes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Real time threading sample Codes" Watch "Real time threading sample Codes" New topic

Real time threading sample Codes

Santosh Kumar Nayak
Ranch Hand

Joined: Aug 02, 2011
Posts: 123
Can some one help me with the real time coding samples for Threads ?

Any useful links
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42955
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

Joined: Aug 02, 2011
Posts: 123
I have already completed with java tutorials.

I am looking for some kind of code repository/sample code for Threads.
Stefano Carniel

Joined: Aug 01, 2013
Posts: 7

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
Don't get me started about those stupid light bulbs.
subject: Real time threading sample Codes