Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged look-ahead-buffer
0
votes
0
answers
1
University of Cinciminnati assignment question
Which of the following runs fastest (assume page size is 4096 bytes)? a) int i, j, npages = 10000; char *arr; arr = (char*)malloc(4096*(npages+1)); for (i=0 ; i < npages ; i++) { for (j=0 ; j < 4096 ; j++) { arr[i+j] += 1; } } b) int i, j, ... *(npages+1)); for (j=0 ; j < 4096 ; j++) { for (i=0 ; i < npages ; i++) { arr[i+j] += 1; } }
Which of the following runs fastest (assume page size is 4096 bytes)?a) int i, j, npages = 10000;char *arr;arr = (char*)malloc(4096*(npages+1));for (i=0 ; i < npages ; i+...
Divyanshu Shukla
183
views
Divyanshu Shukla
asked
Dec 13, 2021
Operating System
operating-system
look-ahead-buffer
+
–
To see more, click for the
full list of questions
or
popular tags
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register