[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] How to halt and then resume the scheduler ?



Hello Ns users,

I am a quite new user in NS world.
I would like to halt the running scheduler and then resume it but I could not.

If I insert the following lines into the tcl :

$ns_  halt
$ns_  resume
NS says that unable to dispatch method resume -> I searched in the file ns-lib.tcl, there is no procedure named resume.  Question : this function has not implemeted yet ?

If I remove the call 'resume' out of the tcl, it's OK but the there is no event in the output file. It seems that the event scheduler halted before any event is dispatched.

So, my problem is how can I call the function halt and resume to stop temporarily the scheduler and then resume it ?

Any help is appreciated,

Thanks in advance
Tuan Nguyen