GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 126 of 921    Print  
How does multithreading take place on a computer with a single CPU
The operating system's task scheduler allocates execution time to multiple tasks. Byquickly switching between executing tasks, it creates the impression that tasks executesequentially.


  
Total Answers and Comments: 4 Last Update: December 22, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 07, 2005 17:22:50   #1  
Tracy Nelson        

RE: How does multithreading take place on a computer with a single CPU
By quickly switching among executing tasks, it creates the impression that the tasks execute simultaneously. If it didn't switch among the tasks, they would execute sequentially.
 
Is this answer useful? Yes | No
November 03, 2006 19:18:23   #2  
acrien        

RE: How does multithreading take place on a computer w...
multi-threading has two forms, theory and reality. In theory, multi-threading is suppose to be the same as "multi-tasking" which means do two different task at the same time. Not possible on a single CPU unless you consider GPU and ALU which generally we do not (consider them). In reality, multi-threading does more than create an illusion, it allows computers to shut down a program in infinite loop by creating another thread so CPU executes one iteration of the loop, switch to the kill thread and terminates the loop. Multi-tasking was suppose to do that but not as well handled.
 
Is this answer useful? Yes | No
December 24, 2006 12:29:03   #3  
sivanesh.a Member Since: December 2006   Contribution: 190    

RE: How does multithreading take place on a computer w...
by Context switching.
 
Is this answer useful? Yes | No
December 22, 2007 08:57:38   #4  
aseemak Member Since: December 2007   Contribution: 2    

RE: How does multithreading take place on a computer with a single CPU
Hyperthreading processors have more than one execution units but only one processor core, thats how multiple tasks are performed simultaneously
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape