首页>
外国专利>
METHOD AND DEVICE FOR REALIZING MULTI-THREAD MESSAGE INTERACTION USING SYNCHRONOUS FUNCTION CALL MECHANISM
METHOD AND DEVICE FOR REALIZING MULTI-THREAD MESSAGE INTERACTION USING SYNCHRONOUS FUNCTION CALL MECHANISM
展开▼
机译:利用同步功能呼叫机制实现多线程消息交互的方法和装置
展开▼
页面导航
摘要
著录项
相似文献
摘要
Disclosed are a method and device for realizing multi-thread message interaction using a synchronous function call mechanism. The method includes: a caller task calling a function interface and writing a request parameter; the function interface locking the right of use of an interface, and setting the state of the caller task as a waiting state; the function interface sending the request parameter to a request processing task via an auxiliary task, and reading the response data fed back by the request processing task to the auxiliary task; and the function interface setting the state of the caller task as an idle state, releasing the right of use of the interface, and returning to the caller task the length of the response data being read. The method and device in the present invention greatly simplify the logic processing flow during the program development process, solving the problem that the logic processing flow of the asynchronous message interaction mechanism is complicated.
展开▼