[ndnSIM] ndn-cxx api with multithreading
Spyridon (Spyros) Mastorakis
mastorakis at cs.ucla.edu
Tue Nov 21 09:00:44 PST 2017
Hi,
In general, NS-3 (and as a result ndnSIM too) is single-threaded. Multi-threading is only supported in NS-3 through the MPI framework:
http://ndnsim.net/2.4/parallel-simulations.html <http://ndnsim.net/2.4/parallel-simulations.html>
https://stackoverflow.com/questions/35543906/parallel-simulations-using-ns3-and-stdthread <https://stackoverflow.com/questions/35543906/parallel-simulations-using-ns3-and-stdthread>
http://ndnsim.net/2.4/parallel-simulations.html#simple-scenario-with-mpi-support <http://ndnsim.net/2.4/parallel-simulations.html#simple-scenario-with-mpi-support>
I am not sure though how (and whether) it would be possible to parallelize an ndn-cxx app in ndnSIM.
Thanks,
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA
> On Nov 21, 2017, at 1:02 AM, 中村真也 <nakamura at c.info.eng.osaka-cu.ac.jp> wrote:
>
> hi all. im new to ndnSIM. And i’d like to simulate my ndn-cxx app that generate multithread.
> but ndnSIM does not support thread.
> Actually, simulation called "terminate called without an active exception”
> Let me know the way to run functions in parallel.
>
> also, I want to know the details on how. If possible, let me see sample code.
>
> best
> ---------------------------------------------------
> Osaka City University
> 中村 真也(Masaya Nakamura )
> nakamura at c.info.eng.osaka-cu.ac.jp <mailto:nakamura at c.info.eng.osaka-cu.ac.jp>
> ---------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20171121/2a89e86f/attachment.html>
More information about the ndnSIM
mailing list