File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 81
Can some one help me with the real time coding samples for Threads ?

Any useful links
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39529
    
  27
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 - updated with new look and Ping home screen widget
Santosh Kumar Nayak
Ranch Hand

Joined: Aug 02, 2011
Posts: 81
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Real time threading sample Codes
 
Similar Threads
Where do we need Threads implementation in real time webaplication
Encapsulation VS Abstraction
getRGB method
Automated Mail Using Java,Apache Tomcat and Postgre,Quartz Scheduler?
doubts on ejbpassivation and ejbactivation