[so] test 6

Marius Nicolae mariusn007 at gmail.com
Fri Nov 16 21:23:30 EET 2007


Sau asa:
sleep(ms/1000);
usleep(1000 * ms%1000);

On Nov 16, 2007 9:15 PM, Take Ceara <dumitru.ceara at gmail.com> wrote:
> nanosleep e POSIX si-ti rezolva toate problemele...
>
>
>
> On 11/16/07, Alexandru Mosoi <brtzsnr at gmail.com> wrote:
> > nici asa nu e bine. usleepul merge maxim o secunda... trebuie sa faci o
> bucla :)
> >
> > On Nov 16, 2007 8:39 PM, Marius Nicolae <mariusn007 at gmail.com> wrote:
> > > Poate nu faci bine sleep-ul
> > >
> > > o varianta ar fi: usleep(milisecunde * 1000)
> > >
> > > On Nov 16, 2007 8:09 PM, Andrei Ciuca <andrei.ciuca at gmail.com> wrote:
> > >
> > > > Am o problema cu testul 6 ... care cand il trece, cand nu-l trece =>
> bug la
> > > > implementarea arborelui binar de cautare. Ca sa o gasesc as vrea sa
> aflu si
> > > > eu ordinea in care vor fi adaugate in coada operatiile . Dar atunci
> cand
> > > > incerc sa le scriu intr-un log cand le primeste serverul (si deci mai
> bag un
> > > > mic delay) ... testul trece intotdeauna :( => nu pot sa aflu secventa
> care
> > > > cauzeaza problema.
> > > >
> > > >
> > > > Sugestii ?
> > > >
> > >
> > > > _______________________________________________
> > > > so mailing list
> > > > so at cursuri.cs.pub.ro
> > > > http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
> > > >
> > > >
> > > _______________________________________________
> > > so mailing list
> > > so at cursuri.cs.pub.ro
> > > http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
> > >
> >
> >
> >
> > --
> > Alexandru Moşoi
> > http://alexandru.mosoi.googlepages.com
> >
> > Please avoid sending me Word or PowerPoint attachments.
> > See http://www.gnu.org/philosophy/no-word-attachments.html
> >
> > _______________________________________________
> > so mailing list
> > so at cursuri.cs.pub.ro
> > http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
> >
> >
>
>
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
>


More information about the so mailing list