[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] How to halt and then resume the scheduler ?
>�I would like to halt the running scheduler and then resume it but I could
>�not.
Why would you want to do that?
>�If I insert the following lines into the tcl :
>
>�$ns_ �halt
>�$ns_ �resume
Try
$ns_ at <timeA> "[$ns_ set scheduler_] halt"
$ns_ at <timeB> "[$ns_ set scheduler_] 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 ?
The command function in scheduler.cc implements a resume "method".
/Dan