There is no rule that we all should know everything. Lets learn few things of everything here.
Campbell Ritchie wrote:To the Java™ tutorials! See whether that helps.
There is no rule that we all should know everything. Lets learn few things of everything here.
There is no rule that we all should know everything. Lets learn few things of everything here.
There is no rule that we all should know everything. Lets learn few things of everything here.
[My Blog]
All roads lead to JavaRanch
Threads can be used where two people need simultaneous access to same data. What does it mean?
There is no rule that we all should know everything. Lets learn few things of everything here.
There is no rule that we all should know everything. Lets learn few things of everything here.
[My Blog]
All roads lead to JavaRanch
There is no rule that we all should know everything. Lets learn few things of everything here.
Rahul J.
There is no rule that we all should know everything. Lets learn few things of everything here.
Manohar Puttaswamy wrote:Hi,
Here is one of the example where we can use threads.
Take the below sample for loop
for(Object data: objects){
doSomeProcessing(data) -- let this processing of the data takes 10 seconds
}
There are totally 100 objects. In this scenario the total time taken will be 100*10= 1000Seconds
If the "doSomeProcessing" task is made as a separate thread and left for execution then all the threads wil get executed in parallel hence the time taken will be 10s. This will be a considerable improvement in the performance but with more memory.
SCJP, SCWCD
There is no rule that we all should know everything. Lets learn few things of everything here.
SCJP, SCWCD
There is no rule that we all should know everything. Lets learn few things of everything here.
You are right; thank you for noticing what I missed yesterday.Doug Braidwood wrote:Hi Krishna,
I'm not sure about that but it might be best to start a new topic for this question, perhaps in the "Threads" forum with an appropriate topic title.
Best regards,
Doug
Don't get me started about those stupid light bulbs. |