Scheduler uses a simple ordered linked list to store events. You must consider:

- memory limits;
- invalid pointers (you cannot add an invalid pointer or dealocate it
before scheduler remove it from the list);

Invalid pointers are the main problem with scheduler. Beyond these
concerns, I suggest you debug with eclipse and gbd.

Sidney Doria
UFCG / BRAZIL



2009/1/19 Nicholas Loulloudes <loulloude...@cs.ucy.ac.cy>:
>
>
> Hi all,
>
> Is it possible the ns-2.33 scheduler is losing events?
>
> I generated aprox. 7000 events in a TCL source file and a lot of those
> events when given to the scheduler are lost.
>
> This is a code snippet:
>
> void ProtName::create_Pkt(Packet* p){
> /*
> * Create a packet with source and destination header
> */
>
> // Schedule it for later Transmission
> Scheduler::instance().schedule(target_, p2, 0.0);
> }
>
> Using printf's i can see the Scheduler correctly receives the packet,
> but later on there is no other trace of it.
>
> Any suggestions? Is there a limit to the events the scheduler  can handle?
>
> Thanks in advance.
>
>
> --
> _________________________________________________
>
> Nicholas Loulloudes
> High Performance Computing Systems Laboratory (HPCL)
> University of Cyprus,
> Nicosia, Cyprus
>
> Tel:  +357-22892663
> Email: loulloudes.n[at]cs.ucy.ac.cy
>
>
>



-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

"Nessa jornada, o conhecimento será o seu escudo..."
(Mestre dos Magos no episódio do grimoire de ouro)

Reply via email to