אני משער שלא יימצא מבחן פתור בו תשובה לשאלה זו אכן תהיה נכונה (ואל תתנו
לניקוד גבוה בה להטעות אתכם), אז הרי היא לפניכם:

בהצלחה לכולם,
עידו.




Solution:

                 For first load:

                                PDE read, PDE write for A bit, PTE read,
user read

                                                1 user read, 2 system read,
1 system write

                1st iteration of the loop:

                                PDE read, PTE read, PTE write D bit, user
write

                                                1 user read, 2 system read,
1 system write

                0x21 iterations => 0x20 = 32 times for next iterations:

                                PDE read, PDE write for A bit, PTE read, PTE
write for D-bit, user write           - every iteration

                                User write clears the D bit in PTE and A bit
in PDE 

                                                1 user write, 2 system read,
2 system write

                Last read:

                                PDE read, PTE read, user read

                                                1 user read, 1 system write
A bit, 2 system read





User reads:         2

Sys reads:            70           total reads 72



Sys writes:          67

User writes:       33           total writes 100



PDE/PTE are the same entry J

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Technion References" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/reference-technion?hl=en
-~----------~----~----~----~------~----~------~--~---

לענות