Method and system for providing event-response capabilities to pseudocode
    1.
    发明授权
    Method and system for providing event-response capabilities to pseudocode 失效
    用于提供事件响应能力进行伪代码的方法和系统

    公开(公告)号:US5628017A

    公开(公告)日:1997-05-06

    申请号:US593544

    申请日:1996-01-29

    IPC分类号: G06F9/46 G06F9/40

    CPC分类号: G06F9/542

    摘要: A method and system for providing event-response and monitoring capabilities to a pseudocode program operating in a message or event-based operating environment. The method and system allow the pseudocode program to asynchronously respond to events via one or more trap routines located in the pseudocode program. The method and system also allow the pseudocode program to synchronously monitor events and receive parameters from operating system routines via callback routines located in the pseudocode program. The system includes an execution engine for executing instructions of the pseudocode program. An event-response routine in the pseudocode program includes instructions for responding to the event. An event-response dispatcher is adapted to receive information identifying the event-response routine, save the execution state of the execution engine, cause the execution engine to execute the event-response routine, and restore the execution state of the execution engine that existed before the event-response routine was executed. A transfer routine accessible in response to a call triggered by the event accesses the event-response dispatcher, passes information identifying the event-response routine to the event-response dispatcher, and returns control to the execution engine after the event-response dispatcher restores the state of the execution engine and returns to the transfer routine.

    摘要翻译: 一种用于向在基于消息或基于事件的操作环境中操作的伪代码程序提供事件响应和监视功能的方法和系统。 该方法和系统允许伪代码程序通过位于伪代码程序中的一个或多个陷阱例程异步响应事件。 该方法和系统还允许伪代码程序通过位于伪代码程序中的回调例程来同步监视事件并从操作系统例程接收参数。 该系统包括用于执行伪代码程序的指令的执行引擎。 伪代码程序中的事件响应程序包括用于响应事件的指令。 事件响应调度器适于接收识别事件响应例程的信息,保存执行引擎的执行状态,使执行引擎执行事件响应程序,并恢复执行引擎的执行状态 事件响应例程被执行。 响应于由事件触发的呼叫可访问的传送例程访问事件响应分派器,将识别事件响应例程的信息传递给事件响应分派器,并且在事件响应分派器恢复之后将控制返回到执行引擎 执行引擎的状态并返回到传输例程。