aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Regarding threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Regarding threads" Watch "Regarding threads" New topic
Author

Regarding threads

nishant vats
Greenhorn

Joined: Feb 11, 2005
Posts: 23
This is regarding threads.I am nt able to understand how threads can be helpful on single processor with respect to execution time.Because if we drill down to processor level(Single processor) then only one task can be executed at particular point.I am nt able to get how threads can reduce the execution time .i have searched a lot but unable to get satisfactory answer.
sai Venka
Greenhorn

Joined: Apr 19, 2005
Posts: 9
Threads wont reduce the execution time.by using threads we can utilise the CPU idle time.when processor goes to an idle stage(eg:-waiting for an input from the user)we can map the processor to execute some other job instead of waiting long time.hope this will give some idea.
nishant vats
Greenhorn

Joined: Feb 11, 2005
Posts: 23
Can anyone explain with the help of web Server or download accelator.they are best examples of multithreading
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Regarding threads