Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在我的项目中做 NS2 中的调度算法。要实现调度算法,我是否必须用 TCL 或 C++ 编写代码?
这取决于您正在执行的调度类型。例如,如果您正在编写队列调度算法,那么您应该编写 C++ 代码。
在 NS2 中;我们可以用 tcl 脚本和 C++ 编写算法。当我们使用现有协议时,TCL 脚本编写简单易行。在使用 C++ 编码时,您必须创建一个新协议,这有点困难。总体而言,为了获得更好的结果,您必须使用 C++ 编写代码