• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple Threads??

 
Ramnath krishnamurthi
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Since the Scheduler(the underlaying OS) decides which thread to run at any given point of time,i mean only one thread running at any point of time,then where do we get the concept of Multiple Threads??
Can some one explain it??
 
Vicken Karaoghlanian
Ranch Hand
Posts: 522
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a single CPU environment 'Multiple Threads' concept is simply an illusion, because you have only one CPU that is shared among multiple thread, and there is only one thread that actually uses that CPU. However, periodically switching the CPU from one thread to another gives the user the illusion that indeed threads are running in parallel (but in reality they are not).
 
Ramnath krishnamurthi
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks once again vicken for ur prompt reply.
Ramnath
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic