This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes simple program scenario that can be done concurrently Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "simple program scenario that can be done concurrently" Watch "simple program scenario that can be done concurrently" New topic
Author

simple program scenario that can be done concurrently

Sara Brown
Ranch Hand

Joined: Feb 22, 2012
Posts: 55
1- How to make a sequence data using thread? or perhaps that is just a waste?
2- can you give me some example on a simple program scenarios that can be done concurrently

please do help me. im still new
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 5893
    
    6

asparagus white wrote:1- How to make a sequence data using thread? or perhaps that is just a waste?


No idea what you mean.

2- can you give me some example on a simple program scenarios that can be done concurrently


Did it not occur to you to SearchFirst?(⇐click)

java concurrent example(⇐click)
Sara Brown
Ranch Hand

Joined: Feb 22, 2012
Posts: 55
what i meant to say is if i want to print all the even numbers between 0 to 100, can we make it to thread?

i really dont have any idea with thread
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 5893
    
    6

asparagus white wrote:what i meant to say is if i want to print all the even numbers between 0 to 100, can we make it to thread?


Anything can be done with multiple threads. But some tasks benefit more than others from multithreading. And some tasks may actually perform more slowly with multiple threads.

i really dont have any idea with thread


Then you should google for java multithreading tutorial, and/or check out Doug Lea's or Brian Goetz's book.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: simple program scenario that can be done concurrently
 
Similar Threads
why use assertion rather than xception Handling
Number of users a website can service
null pointer exception
Anybody seriously using star office?
can any one explain me garbage collection with the help of a simple program ?