From: Marcos D. de A. <mar...@gm...> - 2010-04-09 07:27:37
|
Patricia, I don't use the network support of GridSim, but I am wondering why you would like to get always the last packet in the queue? Marcos 2010/3/29 Patrícia Batista Franco <pat...@ya...> > I'm trying to implement another packet scheduler, but before I decided to > do some tests. > > I created a classe FIFOModifyScheduler with the following changes. Then I ran > the example: Network - example03, but it didn't function. > > FIFOModifyScheduler.java > > public synchronized Packet deque() > > { > > if (pktList.size() == 0) { > > return null; > > } > > > > // Packet p = (Packet) pktList.remove(0); // original > > Packet p = (Packet) pktList.remove(pktList.size()-1); // my > test > > return p; > > } > > How do I implement the modified algorithm? > > Regards, > Patrícia > > > > ------------------------------ > Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10<http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/>- > Celebridades<http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/celebridades/>- > Música<http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/m%C3%BAsica/>- > Esportes<http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/esportes/> > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gridsim-users mailing list > Gri...@li... > https://lists.sourceforge.net/lists/listinfo/gridsim-users > > -- Marcos DIAS DE ASSUNCAO - Postdoctoral researcher INRIA RESO - LIP Bureau 337, Ecole Normale Superieure 46, allee d'Italie - 69364 - Lyon Cedex 07 - France Phone: +33 4 72 72 82 28 |