This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Real time threading sample Codes" Watch "Real time threading sample Codes" New topic
Author

Real time threading sample Codes

Santosh Kumar Nayak
Ranch Hand

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

Any useful links
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41148
    
  45
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 :-).


Ping & DNS - my free Android networking tools app
Santosh Kumar Nayak
Ranch Hand

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

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

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Real time threading sample Codes
 
Similar Threads
getRGB method
Automated Mail Using Java,Apache Tomcat and Postgre,Quartz Scheduler?
doubts on ejbpassivation and ejbactivation
Where do we need Threads implementation in real time webaplication
Encapsulation VS Abstraction