PowerPoint Presentation
Please watch this in SLIDE MODE
since it has “animation”
Server
Load initial page contents
init_buffer_pages.dat
client 0
client 1
server provides
“adcdef” to client 0
client_log_0
22 adcdef
client writes log
writes “what”
for page 11
client_log_1
11 what
client writes log
Task 1
server provides
“what” to client 1
all_requests.dat file
0 read 22
1 write 11 what
1 read 11
Page Id Contents
22 abcdef
11 helloworld
Page Id Contents
22 abcdef
11 what
*
Server
Load initial page contents
init_buffer_pages.dat
client_requests_0.dat file
1 read 22
client_requests_1.dat file
2 write 11 what
3 read 11
client 0
client 1
read page 22
write “what” to page 11
server blocks client 1 since a lower
request number has not been serviced
server provides
“adcdef” to client 0
client_log_0
22 adcdef
client writes log
writes “what”
for page 11
server unblocks client 1
client_log_1
11 what
client writes log
Task 3
Read page 11
server provides
“what” to client 1
Page Id Contents
22 abcdef
11 helloworld
Page Id Contents
22 abcdef
11 what
*