Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

15 results about "Event loop" patented technology

In computer science, the event loop is a programming construct or design pattern that waits for and dispatches events or messages in a program. The event loop works by making a request to some internal or external "event provider" (that generally blocks the request until an event has arrived), then calls the relevant event handler ("dispatches the event"). The event loop is also sometimes referred to as the message dispatcher, message loop, message pump, or run loop.

Internet of Things equipment simulation online test method, system and equipment and storage medium

PendingCN121984903Aavoid switching overheadMeet batch online testing requirementsSecuring communicationSoftware engineeringOnline test
The invention discloses an Internet of Things equipment simulation online test method, system and equipment and a medium. The method comprises the steps that information of equipment to be tested is collected and then imported into a database through a data information issuing platform; an equipment simulation module pulls written equipment information from a database to create an event cycle based on syncio, an independent simulator is instantiated for each piece of Internet of Things equipment, an exclusive asynchronous coroutine is created for each simulator, each simulator creates an independent MQTT client side through aiomqtt to monitor a message channel of an instruction issued by an Internet of Things platform, and the message channel is sent to the Internet of Things platform; and analyzing and processing the arrangement task, constructing equipment attributes and event data, and reporting the equipment attributes and event data to the Internet of Things platform. According to the method, a simulator is adopted to replace real equipment for testing, multi-coroutine concurrent scheduling in a single thread is realized through an asycio asynchronous programming architecture and in combination with an aiomqtt asynchronous MQTT client, the thread switching overhead of a traditional synchronous architecture is avoided, a single server can support parallel simulation of more equipment, and the method is simple and convenient to operate. And the online test requirements of massive equipment can be met while the test efficiency is improved.
Owner:GUANGXI HAIGUIYUN INFORMATION TECHNOLOGY CO LTD

Communication processing method of equipment and storage medium

The invention discloses a communication processing method of equipment and a storage medium. The communication processing method of the equipment comprises the following steps: establishing a main event loop and an event queue, establishing a communication task for data to be sent by a main controller, and storing the communication task in a task queue according to a task priority; the communication tasks are taken out regularly, asynchronous requests are sent, the taken-out communication tasks are stored in an in-transit task set, and meanwhile an asynchronous timer is started; after an asynchronous request of each communication task is initiated, returning to a main event cycle without waiting for a response result so as to continue to process other events; when other parts send response data, a communication receiving event is generated, and the main event circularly adds a target response into a response set; and when the overtime expiration event or the communication receiving event is triggered, matching the communication task with the response data, if the matching is successful, judging that the communication task is successful, and if the matching is failed, reinserting the communication task into the task queue. The communication process is processed in an event triggering mode, and blocking can be avoided.
Owner:GREE ELECTRIC APPLIANCE INC OF ZHUHAI

Event-Driven Architecture-Based Terminal Graphical Interface Display System and Method

This invention discloses a terminal graphical user interface system and method based on an event-driven architecture, relating to the field of terminal interface display technology. It includes: an application management layer establishing a connection between the Qt event loop and the underlying rendering engine; a rendering scheduling layer aggregating rendering requests into a unified output at a fixed frequency through atomic variable marking and a timed batch rendering mechanism; a control system layer constructing a layered dynamic control architecture based on the CView base class; an event handling layer realizing real-time response and distribution of input events through an asynchronous input monitoring thread and a signal-slot mechanism; and a platform adaptation layer encapsulating the differences in terminal characteristics across different operating systems. By aggregating scattered rendering requests into a unified output at a fixed frequency, encapsulating and integrating the Qt object tree through the CView base class, and implementing asynchronous input monitoring and signal-slot mechanisms, automatic management of controls and rendering resources is achieved, overcoming the performance bottleneck of real-time rendering, and ensuring consistency in multilingual text display.
Owner:CHINA STANDARD SOFTWARE

Netty adaptive connection method and system based on EventLoop affinity and PID control

The invention provides a Netty adaptive connection method and system based on EventLoop affinity and PID (Proportion Integration Differentiation) control, and relates to the field of computer network communication. The method comprises the steps of obtaining a service thread request queue, determining an EventLoop thread of a current service, and determining available connection resources in a hierarchical architecture connection pool according to a local priority principle; the hierarchical architecture connection pool is a hierarchical architecture connection pool based on EventLoop affinity, and comprises a thread local pool and a global shared pool; periodically calculating a pressure value representing a system load state based on the multi-dimensional index of the service request queue; based on the pressure value, determining a resource capacity variation through a feedback control algorithm; and on the basis of the capacity variation, performing capacity expansion or capacity reduction operation of connection resources on the thread local pool according to a preset rule, and recovering redundant connections generated by capacity reduction or idle to the global shared pool. The method and the device are used in a Netty self-adaptive connection process based on EventLoop affinity and PID control, and the technical problem of multi-thread lock competition existing in existing Netty connection is solved.
Owner:ANHUI LASSET INTELLIGENT TECHNOLOGY CO LTD

List component state synchronization method, system, medium, device, and program product

PendingCN122363804ACurrent driverState management
This application provides a method, system, medium, device, and program product for synchronizing the state of a list component, relating to the field of terminal application technology. The method includes: when listening for scrolling operations, before a child item is marked as visible and added to the dynamic linkage pool, obtaining an offset from the global state manager; registering a component controller to join the linkage pool and receive broadcasts; upon receiving a broadcast, adding a current driver pointer to the child item through the global state manager; and performing scrolling by combining the offset and the driver pointer. This application avoids the problem of inconsistent rendering and data binding timing when a virtual list scrolls at high speed. It accurately marks the event source through the driver pointer, blocking multi-directional event loops without state locks, simplifying state management, avoiding deadlocks, and comprehensively improving the user experience of virtual lists in complex scenarios.
Owner:FOUNDER SECURITIES CO LTD

Interface lag optimization method, device and equipment of swing system and readable storage medium

This application provides a method, apparatus, device, and readable storage medium for optimizing UI lag in a Swing system. The method includes: an Event Deployment Thread (EDT) detecting whether each code block in the target user code is a time-consuming code block, wherein the target user code is bound to the UI event currently being responded to by the EDT; the EDT encapsulating the time-consuming code block into a time-consuming task and submitting it to an asynchronous task executor, which allocates a background thread independent of the EDT for execution; after submitting the time-consuming task, the EDT calls the `enter` method of the `SecondaryLoop` interface to start a secondary EDT event loop, blocking the execution of subsequent code blocks in the target user code while responding normally to new UI events; after receiving feedback that the time-consuming task has completed execution, the EDT calls the `exit` method of the `SecondaryLoop` interface to exit the secondary EDT event loop, resuming the execution of subsequent code blocks in the target user code. This application can solve the lag problem while ensuring the correctness of the original logic, without requiring large-scale modification and refactoring of the user code.
Owner:FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD +1

A register verification method, platform and storage medium based on UVM

PendingCN122285491AEvent triggerVerification
This invention relates to a UVM-based register verification method, platform, and storage medium, belonging to the field of signal processing technology. The method includes the following steps: 1. Creating a register table in a unified format; 2. Creating a program instance and defining various events, starting the program's event loop, and responding to user operations; 3. Reading and checking the format of the register table and calling execution events; 4. When a register check event is triggered, replacing the declared insertion point with the corresponding register in the register table to generate SystemVerilog; 5. When a register model generation event is triggered, extracting register attributes from the register table to generate SystemVerilog; 6. Clearing the user interface through a function; 7. Importing the generated test cases into the corresponding verification environment for compilation and execution. This invention achieves one-click automated generation of various test cases for register checks, without the need for traditional manual intervention.
Owner:SHANGHAI CHIPON MICRO ELECTRONICS CO LTD

A multi-protocol intelligent agent unified gateway system based on asynchronous programming

The application discloses a multi-protocol intelligent agent unified gateway system based on asynchronous programming, a unified service interface layer provides a standardized application programming interface as an entrance for interaction with a client, receives a task request of the client and returns a response, an asynchronous task processing layer provides a full-asynchronous event loop for managing an asynchronous connection pool, controlling a task concurrency number, scheduling asynchronous tasks and processing streaming data, a protocol adaptation layer is used for realizing bidirectional conversion between an external protocol and a unified data model inside the system, an intelligent agent management layer performs full-life cycle management on intelligent agents registered in the system, and a data persistence layer stores structured data of the system, hot spot data and semantic vectors of the intelligent agents. Through the layered asynchronous architecture and the protocol adaptation mechanism, unified access, efficient processing and unified management of multi-protocol intelligent agents are realized, and the concurrent processing capability, the expandability and the development and operation efficiency of the system are significantly improved.
Owner:TIANFU JIANGXI LAB

Starting method and starting device of embedded system, storage medium and vehicle

PendingCN121680944ABootstrappingProgram loading/initiatingEvent cycleEvent loop
The invention discloses a starting method and a starting device of an embedded system, a storage medium and a vehicle, and relates to the technical field of vehicles, the method comprises the following steps: receiving and responding to a starting instruction sent by a parallel scheduler so as to send a registration service to a message bus; the method comprises the following steps: acquiring state information of a service provided by a target function module on which a current function module depends, performing initialization configuration under the condition that the service of the target function module is successfully registered and the service is determined to be ready based on the state information, and sending a state synchronization request signal to the target function module after the initialization configuration is completed, the target function module sends the state information to the message bus based on the state synchronization request signal; and after receiving the state information sent by the target function module based on the message bus, entering a main event cycle, and executing a target function and a target task. According to the starting method, the starting efficiency of the system can be improved, and the problem of starting failure or blockage caused by unready dependence is avoided.
Owner:GREAT WALL MOTOR CO LTD

Script integrated in eda tool real-time debugging method and system

PendingCN122507464AReduce the probability of blocking the main processDoes not affect normal operationCallbackSoftware engineering
The application relates to a script real-time debugging method and system integrated in an EDA tool. The debugging method comprises the following steps: controlling a main event loop to run, wherein the main event loop is used for processing user operations and system messages in a main thread; in response to an interpreter triggering a preset debugging event, calling a callback function to process current frame information, and creating a local event loop, wherein the local event loop is used for processing the preset debugging event, and the local event loop runs asynchronously with the main event loop. By creating a local event loop in parallel with the main event loop and processing the preset debugging event by using the local loop event, the normal running of the main event loop is not affected, so that the probability of the interpreter blocking the main process is reduced, and the debugging efficiency is improved.
Owner:SHANGHAI HUADA JIUTIAN INFORMATION TECH CO LTD

Some / ip network service state monitoring system and method

PendingCN122339999AData packData acquisition
This invention relates to the field of SOME / IP communication, and proposes a SOME / IP network service status monitoring system and method. The system includes a server-side statistical collection and reporting subsystem and a monitoring tool-side data collection and analysis subsystem. The collection module of the server-side statistical collection and reporting subsystem is used to create an asynchronous message channel for each node. For each service instance, status data is collected in an asynchronous event loop coroutine, the status data is encapsulated into statistical snapshot records, and sent to the central statistical processor through the asynchronous message channel. The reporting module is used to allocate a central statistical processor for each node, receive probe data packets, and send statistical snapshot records to the source address of the probe data packets. The probe module of the monitoring tool-side data collection and analysis subsystem is used to send probe data packets. The query module is used to write the received statistical snapshot records into a local database and query the service status of each service instance.
Owner:AUTOCORE INTELLIGENT TECH (NANJING) CO LTD

Systems and methods for reducing network connection churn

The disclosed computer-implemented method may include receiving, by a network gateway service, a service request from a client device. The method may also include assigning, by the network gateway service, the service request to an event loop. Additionally, the method may include determining, by the network gateway service, a destination of the event loop based on one or more resources of one or more nodes in a ring of nodes. Furthermore, the method may include creating, by the network gateway service, a connection pool for the event loop to select a node subset of the ring of nodes based on a mapping of event loops to node subsets. Finally, the method may include performing, by the network gateway service, load balancing of the connection pool to execute the service request. Various other methods, systems, and computer-readable media are also disclosed.
Owner:NETFLIX INC

Model streaming output method and electronic device

The application provides a model streaming output method and an electronic device, applied to the field of artificial intelligence technology. The method comprises the following steps: in response to a plurality of models receiving a target question sent by a user end, creating a corresponding event loop for each model in an asynchronous thread; executing an asynchronous streaming output task of the corresponding model based on the event loop in the asynchronous thread to generate streaming data for the target question; writing the streaming data output by each asynchronous thread into a message queue, each streaming data having different first priorities based on the importance of executing the asynchronous streaming output task of the corresponding model; in response to the streaming data in the message queue reaching a preset capacity threshold, determining target streaming data with a first priority lower than a preset priority threshold from the message queue, and merging and processing at least two word units in the target streaming data; acquiring the word units from the message queue after the merging and processing, and returning to the user end in a synchronous streaming output manner.
Owner:INSPUR SUZHOU INTELLIGENT TECH CO LTD

Task processing method, asynchronous hardware acceleration system and related device

The embodiment of the invention provides a task processing method, an asynchronous hardware acceleration system and a related device.The task processing method is applied to a user program based on an event loop framework and comprises the steps that all asynchronous tasks are determined and submitted; when the task pause signal is received, pausing processing of the asynchronous task indicated by the task pause signal, processing tasks except the submitted asynchronous task, and triggering a user program to start an active polling mechanism; when it is detected based on an active polling mechanism that there is an asynchronous task of which the operation is completed in a hardware acceleration operation stage in each submitted asynchronous task, obtaining a corresponding operation result; and recovering the processing of the asynchronous task of which the operation is completed, so as to continue to process a subsequent stage of the asynchronous task of which the operation is completed based on the operation result, and the subsequent stage is a stage after the hardware acceleration operation stage in the asynchronous task of which the operation is completed. According to the technical scheme provided by the embodiment of the invention, the performance of the processor can be improved.
Owner:HYGON YUNXIN INTEGRATED CIRCUIT DESIGN (SHANGHAI) CO LTD