On 12/1/06, Rajendra Prasad A <[EMAIL PROTECTED]> wrote: > > hi, > as part of my research, i was exploring into the internals of > ns-2 and i struck with how the event handling is done by ns-2. > since ns is single threaded, how the context switch between > events is taken place, i couldn't get it. > i will be glad if any one help me about this.
There really isn't a context switch (since it is single thread). Everything is executed from the scheduler loop. Look at Scheduler::run() this is where things are done.