Process B reads the contents and check if they are modified or the same.
•
Case 2:
We fill a block of memory of 2* pagesize, and fill it with contents different from the filewe have.
Process A and Process B maps a subset of the file with size 512 bytes(S) with the knowncontents to the memory which is filled.
Process B reads the contents of the page at an address higher than 512 and check if theyare modified or the same.
Process B can either read the original contents of the address space or read 0’s.
Process A writes to the memory at two different places, one is within the range of themapped file and one outside the range.
When Process A tries to write to an address space outside the address range, it either modifies the contents of the page or throws an error.
Process B reads the contents and check if they are modified or the same.
•
Case 3:
We fill a block of memory of 2* pagesize, and fill it with contents different from the filewe have.
Process A and Process B maps a subset of the file with size 1 byte(S) into the memorywhich is filled.
Process B reads the contents of the page at an address higher than 1 byte and check if they are modified or the same.
Process B can either read the original contents of the address space or read 0’s.
Process A writes to the memory at two different places, one is within the range of themapped file and one outside the range.
When Process A tries to write to an address space outside the address range, it either modifies the contents of the page or throws an error.
Process B reads the contents and check if they are modified or the same.
Leave a Comment