Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding threads

 
nishant vats
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone explain with the help of web Server or download accelator.they are best examples of multithreading
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic