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??
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).
- Do not try and bend the spoon. That's impossible. Instead, only try to realize the truth. - What truth? - That there is no spoon!!!
Joined: Jan 22, 2003
Thanks once again vicken for ur prompt reply. Ramnath