METHOD AND APPARATUS FOR EVENT-BASED SYNCHRONOUS COMMUNICATION IN ASYNCHRONOUS COMMUNICATION FRAMEWORK

Disclosed are a synchronous communication method in an event-based asynchronous communication framework and a device therefor. According to an embodiment of the present invention, the communication method comprises the following steps of: generating a request message for a first task by a main threa...

Full description

Saved in:
Bibliographic Details
Main Author LIM MIN GYU
Format Patent
LanguageEnglish
Korean
Published 26.06.2020
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:Disclosed are a synchronous communication method in an event-based asynchronous communication framework and a device therefor. According to an embodiment of the present invention, the communication method comprises the following steps of: generating a request message for a first task by a main thread; and switching the operation state of the main thread for execution of a second task through a synchronized resource in response to communication based on the request message, wherein the first task is a current task performed by the main thread, the second task is the next task to be performed by the main thread, and the communication based on the request message is performed through a non-blocking socket channel. Therefore, both synchronous communication and asynchronous communication can be supported in asynchronous communication middleware by using a blocking socket channel in event-based asynchronous communication middleware. 이벤트 기반 비동기식 통신 프레임워크에서의 동기식 통신 방법 및 장치가 개시된다. 일 실시예에 따른 통신 방법은, 메인 스레드(main thread)가 제1 태스크(task)에 대한 요청 메시지를 생성하는 단계와, 상기 요청 메시지에 기초한 통신에 응답하여 동기화 리소스(synchronized resource)를 통해 제2 태스크의 수행을 위한 상기 메인 스레드의 동작 상태를 전환하는 단계를 포함하고, 상기 제1 태스크는 상기 메인 스레드에 의해 수행된 현재 태스크이고, 상기 제2 태스크는 상기 메인 스레드에 의해 수행될 다음 태스크이고, 상기 요청 메시지에 기초한 통신은 비블로킹 소켓 채널(non-blocking socket channel)을 통해 수행된다.
Bibliography:Application Number: KR20190004704