[ns] Does ns2 support simultaneous processing ?
Daniel Mahrenholz
mahrenho at ivs.cs.uni-magdeburg.de
Sat Apr 1 00:15:37 PST 2006
On Friday 31 March 2006 17:33, Saurabh Sinha wrote:
> I just wanted to know that whether ns2 supports threads or not? Like can
> more that 2 two stations transmit at the same time
> It will of gr8 help if some one can post a suggestion
Yes and no - ns2 itself does not use threads. But the event-based processing
model does not need threads to allow for concurrent threads of control. That
means two station can perform actions at the same moment in time. The
simulator will serialize them and compute them sequentially. An event-based
simulation does not need to care about real-time (wall clock time), it has
its own time base and so can compute as much events (happening) at the same
time as you need. The simulation time will stand still during the processing
of an event and will jump to the execution time of the next event that has to
be processed.
Hope this answers your question.
Daniel.
--
Dipl.-Inf. Daniel Mahrenholz, University of Magdeburg, Germany
Homepage: http://ivs.cs.uni-magdeburg.de/~mahrenho
More information about the Ns-users
mailing list