主权项 |
1. A method comprising:
receiving, from a first module executing in a first address space and by a second module in a second address space through a channel, a request to execute a task, wherein the request is part of a function that is to be executed in the second address space; placing, by the second module, the task into a task queue for execution in the second address space; extracting, by the second module from a response queue, pending responses not yet returned to the first module that are results of execution of other tasks in the second address space, wherein requests for the other tasks were previously sent from the first module to the second module for execution in the second address space; compounding, by the second module, the pending responses that are the results of execution of the other tasks in the second address space to form a compounded response; combining, by the second module, the compounded response and a return value for acknowledgement of the request to execute the task into a combined communication,
wherein the combined communication is formatted according to a new data type that is defined to include the acknowledgement and a list of the pending responses,wherein a return value of the function is defined as the new data type; and transmitting, by the second module to the first module in the first address space, the combined communication. |