Design and implement a variation of Msglang in which each process has its own heap. Creating a

Question:

Design and implement a variation of Msglang in which each process has its own heap. Creating a process creates the heap of that process. Then, implement two variations of the send expression, as follows:

In the first variation, prohibit the send expression from sending any reference values, whether directly or indirectly. Only numerical values, Boolean values, string values, unit value, dynamic errors,

and pairs of these values may be sent from one process to another.

In the second (much more involved) variation, allow processes to send reference values directly or indirectly. When a reference value is sent, copy the tree rooted at that reference from the heap of the sender to the heap of the receiver process, adjusting the references as necessary. Note: It might not be possible for references to have the same location in the heap of the recipient, as that location might already be allocated by the recipient.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: