首页>
外国专利>
Method and system for executing third-party agent code in a data processing system
Method and system for executing third-party agent code in a data processing system
展开▼
机译:在数据处理系统中执行第三方代理代码的方法和系统
展开▼
页面导航
摘要
著录项
相似文献
摘要
In one embodiment, agent routines are executed in a first thread, each agent routine being invoked by one of coroutines. A agent processor executes in a second thread the agents associated with the one or more agent routines, including receiving a first yield signal from a first of the coroutines indicating that a first of the agent routines yields to perform a first action that requires an action simulation, in response to the first yield signal, suspending the first coroutine, selecting a second of the coroutines from a head of a first agent queue maintained by the agent processor, and executing the second coroutine by assigning the execution lock to the second coroutine. In a third thread, a simulator simulates the first action on behalf of the first coroutine and signals the agent processor to resume the first coroutine after completing the simulation of the first action.
展开▼