首页> 外国专利> METHOD AND DEVICE FOR CALLING REMOTE PROCEDURE USING SYNCHRONOUS MODE

METHOD AND DEVICE FOR CALLING REMOTE PROCEDURE USING SYNCHRONOUS MODE

机译:同步模式下的远程过程调用方法及装置

摘要

A method and device for calling a remote procedure using a synchronous mode, the method comprising: creating a signal event corresponding to a remote procedure during calling of the remote procedure, the initial state of the signal event being a no-signal state (S101); sending a calling request required for calling the remote procedure to a called terminal of the remote procedure (S102); calling a preset function so as to suspend a thread corresponding to the remote procedure, and waiting for a request result returned by the called terminal (S103); and changing the state of the signal event to a signal state when the request result is received so that the preset function awakens the thread corresponding to the remote procedure (S104). With the described method, waste of system resources is reduced when a remote procedure is called, and the performance of a program is guaranteed.
机译:一种用于使用同步模式调用远程过程的方法和设备,该方法包括:在调用远程过程期间创建与远程过程相对应的信号事件,该信号事件的初始状态为无信号状态(S101) ;向远程过程的被叫终端发送调用该远程过程所需的调用请求(S102);调用预设函数,以挂起对应于所述远程过程的线程,并等待所述被叫终端返回的请求结果(S103);当接收到请求结果时,将信号事件的状态改变为信号状态,以使预设功能唤醒对应于远程过程的线程(S104)。利用所描述的方法,当调用远程过程时减少了系统资源的浪费,并且保证了程序的性能。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号