[so] [tema3]test4

Marius Viorel Grigoras grigorasmariusviorel at gmail.com
Fri May 1 12:08:16 EEST 2009


Salut,

Am o problema la testul4. Trec toate subtestele din acest test, dar cand
ajung la :

for (i = 0; i < 8; i++) {
        write_read (i, NO_CHECK, rand_pos);
        read_write (i, NO_CHECK, rand_pos + 4);
        write_read (i, NO_CHECK, rand_pos + 8);
    }

pur si simplu se agata(ca si cum ar cicla undeva in spate). Practic, cand
ajung aici, paginile sunt o parte in ram, o parte in swap. Nu intra in
handler.
Prima data cand intra in write_read din acest for(), se blocheaza la     *
(int *) ((char *) start + page_id * p_sz + offset) = mval. Nu printeaza
nimic dupa.
Nu face absolut nimic dupa aceasta linie de cod si chiar nu inteleg de ce.
Am printat inainte start, page_id*p_sz, offset, toate par ok.
As avea nevoie de un hint sa ma prind unde am implementat gresit.

Multumesc,
Vio.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090501/d1c5ad7a/attachment.htm>


More information about the so mailing list