Assuming a DSM system is implemented in middleware without any hardware support and in a platform-neutral manner, how would you deal with the problem of differing data representations on heterogeneous computers? Does your solution extend to pointers?
What will be an ideal response?
The middleware calls can include marshalling and unmarshalling procedures. In a page-based implementation, pages would have to be marshalled and unmarshalled by the kernels that send and receive them. This implies maintaining a description of the layout and types of the data, in the DSM segment, which can be converted to and from the local representation.
A machine that takes a page fault needs to describe which page it needs in a way that is independent of the machine architecture. Different page sizes will create problems here, as will data items that straddle page boundaries, or items that straddle page boundaries when unmarshalled.
A solution would be to use a ‘virtual page’ as the unit of transfer, whose size is the maximum of the page sizes of all the architectures supported. Data items would be laid out so that the same set of items occurs in each virtual page for all architectures. Pointers can also be marshalled, as long as the kernels know the layout of data, and can express pointers as pointing to an object with a description of the form “Offset o in data item i”, where o and i are expressed symbolically, rather than physically.
This activity implies huge overheads.
You might also like to view...
Write an HTML page that contains a text ¯eld for a name and a button. When the button is clicked check that the text ¯eld has only alphabetic characters (no numbers) in it. If not, use an alert dialog to inform the user.
What will be an ideal response?
Because all cell phones have a Blogger app built-in, and as long as a phone supports text messaging, blog entries can be posted from a mobile phone
Indicate whether the statement is true or false
Answer the following statement(s) true (T) or false (F)
All e-mail servers use databases that store multiple users’ e-mails.
Variables and literals contained in an expression are known as ____.
A. ?operators B. ?operands C. ?events D. ?properties