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

110 results about "Coroutine" patented technology

Coroutines are computer program components that generalize subroutines for non-preemptive multitasking, by allowing execution to be suspended and resumed. Coroutines are well-suited for implementing familiar program components such as cooperative tasks, exceptions, event loops, iterators, infinite lists and pipes.

Batch writing method and device for PostgreSQL database

The embodiment of the invention discloses a batch writing method and equipment for a PostgreSQL database, relates to the technical field of cross-database migration, and is used for solving the problems of poor compatibility and low reliability of an existing mode. The method comprises the steps of performing cross-database dialect semantic mapping on a heterogeneous data source based on a cross-database semantic mapping engine to obtain a global concurrent import control parameter set of a target database, and extracting the heterogeneous data source based on analysis configuration of the global concurrent import control parameter set to obtain a standard record object; performing flow control on a task channel of the target database based on a self-adaptive backpressure strategy so as to assemble the standard record objects into data batches and distribute the data batches to a working coroutine of the target database; the batch writing protocol is called through the working coroutine, the batch direct writing request is initiated to the target database for batch writing, and the writing abnormity is processed based on the preset fault-tolerant mechanism to obtain the writing result, so that the data writing risk is effectively reduced while the compatibility is ensured, and the reliability of cross-database batch writing is improved.
Owner:HIGHGO SOFTWARE

Coroutine-driven multi-strategy APP behavior collection event reporting system

The invention relates to the technical field of computer application, in particular to a coroutine-driven multi-strategy APP behavior collection event reporting system. Comprising a management center, and the management center is in communication connection with a system configuration module, an event coroutine module, an event uploading module and a collection retransmission module. The method comprises the following steps: collecting equipment information data and user identity information, initializing the collected equipment information data and the user identity information, obtaining configuration data, and establishing a start burying point through the configuration data; establishing a communication link according to the starting burying point; analyzing the obtained use behavior of the APP user to obtain an APP behavior collection sub-event; processing the APP behavior collection sub-event through a coroutine unit to obtain a sub-event data packet, uploading the sub-event data packet, and generating a data uploading completion signal and a data uploading failure signal; and retransmitting the sub-event data packet through the data uploading completion signal and the data uploading failure signal. The data loss rate can be reduced.
Owner:SHANGHAI JIAJIAN SOFTWARE CO LTD

Software performance test system, method and equipment under high-concurrency scene

The invention discloses a software performance test system, method and device in a high-concurrency scene, and relates to the field of software testing, the system comprises a scene intelligent construction module used for generating a concurrency scene through a behavior tree modeling and time sequence prediction algorithm according to service demand parameters and historical traffic data; the distributed test environment scheduling module is used for constructing a distributed test environment by adopting a container arrangement technology; the virtual user load generation module is used for simulating concurrent user requests by adopting a coroutine pool technology; the real-time performance data acquisition module is used for acquiring multi-source performance data of the tested software in real time; the intelligent performance analysis module is used for calculating a core performance index according to the multi-source performance data and carrying out anomaly detection and trend prediction; and the performance bottleneck positioning module is used for mining a dependency relationship among the core performance indexes and generating a bottleneck positioning report and an optimization suggestion document. According to the method, the accuracy, the efficiency and the stability of software performance testing in a high-concurrency scene are improved.
Owner:LU ZE TECH CO LTD

User-mode-oriented storage task adaptive scheduling method and system

The invention belongs to the technical field of task scheduling of a storage system, and discloses a user-mode-oriented storage task self-adaptive scheduling method and system, and a more efficient task processing framework is realized by replacing an original kernel thread-based storage task scheduling scheme with a user-mode coroutine scheduling mechanism. The multi-level priority queues are directly managed in task scheduling, and CPU core binding configuration is carried out, so that the switching delay of a user mode / kernel mode is reduced, and the task execution controllability is improved. A dual-threshold self-adaptive scheduling strategy switching technology is introduced, and a greedy scheduler and a reinforcement learning scheduler are combined, so that the problem of adaptability of a static scheduling strategy in a dynamic load environment is relieved, performance loss caused by scheduling strategy solidification is avoided, and the self-adaptive capability and service quality guarantee of a system under a complex load are improved. Compared with an existing task scheduling method based on a kernel thread, the task scheduling method has the advantages that the overall performance and the resource utilization rate of a storage system can be remarkably improved while the task execution efficiency and the SLA requirement are guaranteed.
Owner:HUAZHONG UNIV OF SCI & TECH +1

Online fragment recombination method and related equipment

The invention provides an online fragment restructuring method and related equipment, and relates to the technical field of computers.The method comprises the steps that an online fragment restructuring request is received, a target fragment is determined, a migration task is created in the target fragment, and a first coroutine and a second coroutine are created in the target fragment according to the incremental copying process in the migration task, the first coroutine and the second coroutine are executed asynchronously and concurrently, a binary log event in the source fragment is obtained in the first coroutine and written into a relay log of the target fragment, and data in the relay log is written into the target fragment through the second coroutine. The problem of shutdown migration is solved, shutdown processing is not needed, usability and efficiency are improved, dependence on manual operation is reduced, and the scene application range is widened.
Owner:XIAN TONGXING HENGYAO INFORMATION TECHNOLOGY CO LTD

High-concurrency request processing method and device for reducing Linux kernel resource loss

The invention relates to a high-concurrency request processing method for reducing Linux kernel resource loss. The high-concurrency request processing method comprises the following steps: receiving a user request and extracting a routing key; the requests are distributed to one fragment in the fixed N fragments through a fragment event executor, each fragment is bound with a single thread and a bounded queue, and the same routing key requests are executed in the same fragment in a strongly sequenced mode according to the enqueue sequence; calling a coprogram state machine to push a business process in the fragment execution thread, and returning a state result of migrating to a next state, keeping a current state or terminating the process through a state processing function; dynamically triggering self-adaptive back pressure based on queue depth or waiting time delay, and adjusting a request submission strategy according to a queue filling rate and exponentially weighted moving average waiting time delay; and submitting the long blocking task to an asynchronous task subsystem, and performing isolated execution through an independent bounded queue and a small concurrent thread pool. The same-key sequence is guaranteed through fragmentation single-thread execution, and thread switching and lock contention are remarkably reduced.
Owner:BEIJING MICO WORLD TECH CO LTD

An alarm rate detection method, device, equipment and storage medium

Embodiments of the present application provide a kind of alarm rate detection method, device, equipment and storage medium, the method can create and target test equipment same and one-to-one corresponding coroutine, then call each coroutine continuously through the way of mutual exclusion, constantly from the ordered acquisition of preset rule set in measured rule package, then measured rule package is sent to target test equipment to carry out the test of rule package, each coroutine can be realized uninterrupted continuous testing, and after completing the test of all measured rule package, the alarm result of each measured rule package is determined and alarm rate is determined, without waiting target test equipment to spit alarm after each time sending rule package, so that the test efficiency of rule package can be improved.
Owner:NSFOCUS INFORMATION TECHNOLOGY CO LTD +1

Shared resource access method and device, equipment, medium and product

The invention discloses a shared resource access method and device, equipment, a medium and a product, and relates to the technical field of efficient concurrency control and resource management in a computer system.The shared resource access method and device adopt a mixed structure combining a lock-free annular queue and a double-end queue, queue data are analyzed through a load prediction unit, and the load trend is predicted; the queue capacity and the migration threshold value are dynamically adjusted; the lock-free annular queue is preferentially used in daily life to improve the access efficiency, and when the queue is close to the capacity upper limit or triggers the migration threshold, migration and capacity expansion of waiting coroutines are automatically realized through the double-end queue, so that the processing performance under high concurrency is ensured, and the dynamic capacity requirement is met; finally, the technical problems that the performance and the capacity of a single queue are difficult to consider in a high-concurrency scene and the single queue cannot adapt to a dynamic load are solved, and efficient scheduling of shared resources in a coroutine environment is realized.
Owner:INSPUR SUZHOU INTELLIGENT TECH CO LTD

Coroutine task scheduling optimization method based on OpenHarmony

The invention provides a coroutine task scheduling optimization method based on OpenHarmony, belongs to the technical field of industrial robot operation, and aims to solve the problem that an industrial robot is insufficient in real-time performance, concurrency and flexibility in a complex task scene, and the method comprises the following steps: S1, coroutine data structure design; s2, optimizing coroutine memory management; s3, multi-architecture processor adaptation is carried out; s4, optimizing a coroutine task scheduling mechanism; s5, carrying out coroutine multi-core scheduling optimization; the invention designs and realizes an industrial robot operating system library of a lightweight coroutine in order to realize coroutine task scheduling optimization. According to the coroutine library, the lightweight coroutine library which is lower in memory occupation, higher in task real-time performance and higher in CPU utilization rate is designed and realized aiming at the condition that resources are limited in a robot scene, and meanwhile, the coroutine library is introduced into a domestic robot operating system for real-time scheduling adaptation for the first time.
Owner:CHONGQING RES INST OF HARBIN UNIV OF TECH +1

Python function dynamic management method, system and storage medium

The application discloses a kind of Python function dynamic management method, system and storage medium, the method first receives the function call service request of containing target service identification and target function identification, then based on double hashing register fast positioning target service instance, extract target function object therefrom and analyze its execution attribute to determine the matched asynchronous execution strategy, finally according to the strategy function call is encapsulated as coroutine task or thread / process task to be executed in one step scheduling and return result.
Owner:GUANGDONG ESHORE TECH

Processing methods, devices, storage media, and systems for industrial serial communication

The application provides a processing method, device, storage medium and system for serial machine communication, and belongs to the technical field of communication. The monitoring method comprises the following steps: storing element information corresponding to a plurality of ports by using a first queue pool; adding elements corresponding to one or more TCP ports in the plurality of TCP ports into a to-be-processed linked list, adding element information corresponding to one or more TCP ports with a cache mark into a preparation linked list, and receiving output information of the TCP ports in the preparation linked list; when the one or more TCP ports are connected, predicting I / O operations generated in a next process, and marking the process by using an asynchronous keyword. The application configures the to-be-processed linked list, the preparation linked list, the cache mark and the asynchronous keyword based on the coroutine technology, realizes processing of asynchronous communication of the serial machine, and does not have a time slice of context switching of the CPU, so that the CPU resource overhead is reduced.
Owner:WUXI STARS MICRO SYSTEM TECHNOLOGIES CO LTD

Efficient task scheduling method based on Golang coroutine and multiple channels

The invention provides an efficient task scheduling method based on a Golang coroutine and multiple channels. The efficient task scheduling method comprises the following steps: constructing a three-level channel scheduling architecture; the method comprises the following steps of: defining a scheduler structural body; priority processing and dynamic load balancing of instructions are achieved through a three-level gradient buffering mechanism; calculating the number of required working coroutines in real time by using a dynamic capacity expansion and contraction algorithm model, and adjusting the size of a coroutine pool in real time; calculating timeout time by utilizing a dynamic timeout formula, and automatically triggering a deadlock prevention mechanism when task execution time exceeds a calculated value; a fault-tolerant scheduling strategy is adopted, a complex task is decomposed into a plurality of independent fragments which can be processed in parallel, and processing results of the fragments are submitted in a result channel non-blocking mode; and meanwhile, when a first effective result is detected by using a quick response strategy, immediately cancelling the remaining unprocessed fragments and returning the result. Through the technical means based on Golang coroutines and multiple channels, efficient, low-delay and high-concurrency task scheduling is achieved, and the requirements of high-concurrency and high-real-time application scenes are met.
Owner:ZHUHAI JIAMI TECH CO LTD

Register resource allocation method, computer equipment, readable storage medium and program product

The invention relates to a register resource allocation method, computer equipment, a readable storage medium and a program product. The method comprises the following steps: constructing a function group through a calling relationship between functions, wherein the function group comprises a coroutine kernel function and at least one coroutine subfunction; creating a resource record table corresponding to the function group, wherein the resource record table is used for recording register resources allocated to coroutine kernel functions and / or coroutine sub-functions in the function group; and carrying out register allocation on the coroutine kernel function and the coroutine sub-function in the function group based on the resource record table. By adopting the method, the requirements of local variable register resource isolation and shared variable register resource consistency in a collaborative mode can be met, so that the parallel computing efficiency is improved.
Owner:SHANGHAI BIREN TECH CO LTD

Code execution method and apparatus, device, medium, product

PendingCN122450544ACoding blockDependency injection
The method comprises: obtaining a target code block to be called by a current coroutine and at least one first dependent object relied on by the target code block; storing the at least one first dependent object in a local storage space of the current coroutine; and calling and executing the target code block under the local storage space by using the current coroutine, so as to obtain the at least one first dependent object from the local storage space in the process of calling the target code block. In this way, the dependence on convention and configuration can be reduced, the strong coupling with a specific backend framework is not required, a more intuitive and flexible dependence injection mode is provided, the use of reflection and proxy mechanisms is reduced, and the performance overhead in the code execution process is reduced.
Owner:MOORE THREADS TECH CO LTD

Method for acquiring call stack and computer equipment

The invention provides a method for obtaining a call stack and computer equipment. According to the method, a stack return statement is added in a code file during running of a Rust programming language, so that control during running is increased. The asynchronous task (or coroutine) is expanded on the thread, and when the execution is in order to obtain the call stack, the task on the thread is returned to the stack, so that the call stack is obtained and recorded. In the execution process, the data and the state of the stack-free coroutine cannot be changed, and the task logic cannot be influenced. According to the method for obtaining the call stack and the computer equipment provided by the invention, the code file cannot be modified in a large range, a large amount of operation overhead cannot be occupied for obtaining the call stack, so that function call or task logic cannot be influenced, the call stack can be conveniently and efficiently obtained, and the user experience is improved. Therefore, the operation condition of the coroutine in the Rust programming language can be accurately judged.
Owner:HUAWEI TECH CO LTD

Code generation method, electronic device, and storage medium

The application relates to the field of artificial intelligence, and provides a code generation method, an electronic device and a storage medium, the method comprising the following steps: obtaining a tensor intermediate representation of a target operator; inserting a synchronization operation in the tensor intermediate representation based on a data dependency relationship of the tensor intermediate representation, so as to obtain a synchronization tensor intermediate representation; automatically splitting the synchronization tensor intermediate representation into a main function and a plurality of coroutine sub-functions, the main function being used for calling each coroutine sub-function, and different coroutine sub-functions corresponding to different cooperative thread bundles; and automatically generating running code of the target operator based on the main function and the plurality of coroutine sub-functions. The method, the electronic device and the storage medium provided by the application realize automatic generation of fine-grained asynchronous parallel code of a complex logic operator, reduce the development workload and development cost of the operator, improve the development efficiency of the operator, and optimize the performance of the operator. Moreover, the method can be used for code implementation of various operators, is not limited by the number and type of operators, and has good generalization and flexibility.
Owner:SHANGHAI BIREN TECH CO LTD

Deterministic time delay coroutine scheduling method and electronic equipment

The invention relates to the technical field of computers, and discloses a deterministic time delay coroutine scheduling method and electronic equipment, which are used for controlling the running time of a coroutine and ensuring that the coroutine is executed on time. In the method, the electronic equipment determines operation time information of a first coroutine, and the operation time information of the first coroutine comprises a first expected operation duration and a first expected operation end moment; the electronic equipment determines target time information of the first coroutine according to the running time information of the first coroutine, the target time information of the first coroutine is used for indicating the estimated running time length of the first coroutine, and the target time information of the first coroutine comprises a first estimated starting moment and a first estimated ending moment. Therefore, the electronic equipment can estimate the starting moment and the ending moment of the operation of the first coroutine based on the expected operation duration and the expected ending moment of the first coroutine, so that the operation time of the coroutine can be controlled, the coroutine is ensured to be executed on time, and the time delay problem is avoided.
Owner:HUAWEI TECH CO LTD

Queue message backlog processing method, system and equipment based on coroutine technology

The invention belongs to the technical field of message processing, and provides a queue message backlog processing method, system and equipment based on a coroutine technology, which are used for monitoring the backlog amount of message queues in real time and dynamically increasing the number of coroutine consumers according to the backlog condition of the message queues; dividing the message queue into a plurality of partitions, and dynamically adjusting partition distribution according to the load condition of each coroutine consumer; coroutine consumers pre-fetch messages from the message queue server in batches, the number of the pre-fetched messages is dynamically adjusted according to the current backlog condition and the processing speed of the consumers, and a local cache queue is constructed at the consumer side to store the pre-fetched messages; and coroutine consumers concurrently process a plurality of messages by using a coroutine, and send receipts to the message queue in combination with an asynchronous receipt mechanism. According to the method, the problem of message backlog of the message queue is solved by utilizing a coroutine technology, and message delay is reduced and the real-time performance and the resource utilization rate of the system are improved through optimization means such as dynamic extension of the coroutine consumer pool, batch prefetching of messages and concurrent processing.
Owner:ALPHA ESS CO LTD

Method and device for realizing on-orbit operation and on-orbit autonomous operation of spacecraft

The present invention discloses a method and device for realizing on-orbit operation and autonomous on-orbit operation of a spacecraft, and belongs to the technical field of on-orbit operation of a spacecraft. The method comprises: in response to a control command sent by a ground control terminal, creating a virtual machine in an engine, creating a new coroutine in the virtual machine, using the new coroutine to load an on-orbit control program from an onboard memory into the virtual machine and activating the on-orbit control program, establishing an association relationship among a virtual machine identifier, a coroutine identifier, and an on-orbit control program identifier; adding a coroutine associated with the on-orbit control program to a scheduling queue, and scheduling the coroutines in the scheduling queue according to a preset scheduling strategy, so as to utilize the coroutine to run the on-orbit control program associated with it. In the present invention, the ground control terminal only participates in the preparation process of the on-orbit control program in the early stage, and the operation process of the on-orbit control program is completely autonomously operated by the spacecraft, which can realize flexible adaptation of application scenarios.
Owner:BEIJING INST OF CONTROL ENG

Timed task execution method, electronic equipment, readable storage medium and program product

The invention discloses a timed task execution method, electronic equipment, a readable storage medium and a program product, and relates to the technical field of computers. The method comprises the following steps: constructing a timer data structure according to a time dimension attribute item and a task dimension attribute item, and correspondingly initializing a data structure element according to a current task execution parameter; and generating a task data structure according to the operation parameter information and the coroutine parameter of the newly added timed task, and inserting the task data structure as a node into a timer data structure. And in the process of checking the expiration of each timed task, if the current parameter value of the task dimension attribute points to the new timed task, transferring the new timed task and the target execution coroutine to respective corresponding to-be-executed task queues. The problem that the coroutine and the timer are not tightly combined in the prior art can be solved, and the coroutine can be efficiently utilized for task scheduling.
Owner:LANGCHAO ELECTRONIC INFORMATION IND CO LTD

Timer life cycle management method and device, equipment and storage medium

The invention provides a timer life cycle management method and device, equipment and a storage medium, a system timer object is created through a timer management instance, a timer callback function is registered in an operating system timed task interface, when a cycle corresponding to a timed cycle field is reached, task logic in a task function field is automatically triggered, and the timed task is automatically called. Therefore, precise scheduling and unified management of the timed tasks are realized. By setting the instance identification field and the running state flag field in the timer management information, each timer object can be uniquely identified and tracked, and the problem of repeated creation or state disorder is avoided. Furthermore, a stop signal is received through a monitoring coroutine in a stop stage, so that the safe termination of a timed task and the automatic release of resources are realized, and the reliable recovery of a timer and the stable operation of the system are ensured.
Owner:GUANGZHOU BAOLUN ELECTRONICS CO LTD

A process-based network traffic statistics method

The present invention provides a process-based network traffic statistics method, comprising the following steps: a coroutine captures the front-end data packet from the packet queue, performs transport layer filtering, network layer filtering, and application layer filtering, calculates the effective data volume of the data packet, pushes the effective data volume value to a data channel, calculates the effective data volume value within the data channel, and continuously obtains the traffic value of the process. The method has the following advantages: 1. It is simple to use out of the box, using a compiled binary executable program, and can be used quickly and cheaply in Linux x86 and ARM environments; 2. Starting from the application layer, it filters traffic based on process and service names, thereby better aligning with business objectives, reducing interference factors, and reducing analysis difficulty. This method effectively reduces the difficulty of observation in scenarios such as port negotiation, where there are many ports and they change dynamically.
Owner:BEIJING ICHINAE SCI & TECH CO LTD

Priority-based pop-up window management method and system, electronic equipment and medium

The invention relates to the technical field of computer programming, in particular to a priority-based pop-up window management method and system, electronic equipment and a medium. The method comprises the following steps: importing related classes; constructing a suspended function as a corresponding popup task for the popup, and instantiating the asynchronous result container as a decision result container corresponding to the popup task; acquiring the priority of the pop-up window task, and adding the pop-up window task into a pop-up window task queue based on the priority of the pop-up window task through a queuing method of a pop-up window queue manager; starting a coroutine in the coroutine action range, executing the pop-up window tasks in the pop-up window task queue according to the sequence, executing the pop-up window tasks, and obtaining a result value in a corresponding decision result container; if the result value is the preset value, executing the next pop-up window task in the pop-up window task queue in sequence; and if the result value is not the preset value, stopping executing all follow-up window popup tasks. According to the method, interface conflicts and memory leakage risks can be avoided, and the maintainability and reusability of codes are improved.
Owner:SHENZHEN GREEN CONNECTION TECH CO LTD

Multi-interface collaborative optimization method and system for quickjs of embedded device

The application discloses a QuickJS multi-interface collaborative optimization method and system of embedded equipment, relates to the technical field of JS multi-interface optimization, and comprises the following steps: S1, collecting interface task data, performing data preprocessing, identifying control difference and state change before and after the task; S2, setting a basic frame budget, constructing a task frame time consumption model, outputting a predicted frame time consumption, and comparing the current frame actual time consumption with the basic frame budget; S3, calculating the interface task priority, performing real-time sorting and scheduling, and establishing an asynchronous coroutine and task splitting and sticking mechanism; S4, outputting a structured rendering command, evaluating the redundancy of the control, and taking control adjustment measures; S5, constructing an error description vector, quantifying the deviation degree of the actual rendering result, and taking a rollback recovery measure; the problems that interface response depends on an event loop in the interaction between QuickJS and the underlying UI system, and that multiple JS interface tasks are simultaneously activated, resulting in abnormal interface rendering, are solved.
Owner:NANTONG PUYU ELECTRONIC TECH CO LTD

QuickJS multi-interface collaborative optimization method and system of embedded device

The invention discloses a QuickJS multi-interface collaborative optimization method and system of embedded equipment, and relates to the technical field of JS multi-interface optimizing.The QuickJS multi-interface collaborative optimization method comprises the steps that S1, interface task data are collected, data preprocessing is conducted, and control differences and state changes before and after a task are recognized; s2, setting a basic frame budget, constructing a task frame time consumption model, outputting predicted frame time consumption, and comparing actual time consumption of a current frame with the basic frame budget; s3, calculating interface task priorities, performing real-time sequencing and scheduling, and establishing an asynchronous coroutine and a task splitting and viscous mechanism; s4, outputting a structured rendering command, evaluating the redundancy of the control, and taking control adjustment measures; s5, constructing an error description vector, quantifying the deviation degree of an actual rendering result, and taking a rollback recovery measure; the problem that in interaction of QuickJS and an underlying UI system, interface response depends on event circulation, and interface rendering is abnormal when multiple JS interface tasks are activated at the same time is solved.
Owner:NANTONG PUYU ELECTRONIC TECH CO LTD

A coroutine scheduling method, device, system, equipment, storage medium and product

The present application discloses a coroutine scheduling method, apparatus, system, equipment, storage medium and product, which relates to the field of task scheduling technology, wherein a multi-priority queue group is used to store the first coroutine task to be executed in its corresponding scheduling domain, and a storage module is used to store the second coroutine task that is executed regularly in its corresponding scheduling domain; the execution period of the first coroutine task is less than the execution period of the second coroutine task. When there is an expired second coroutine task in the storage module, the expired second coroutine task is mounted to the multi-priority queue group. This effectively avoids the situation where the second coroutine task has not reached the execution time, resulting in the first coroutine task with a low priority being unable to be executed. The coroutine tasks are obtained and executed from the multi-priority queue group in order of priority, ensuring that tasks with a high priority obtain execution resources first. Task migration of each scheduling domain is performed according to the operating status and load status of each scheduling domain, thereby optimizing resource utilization.
Owner:LANGCHAO ELECTRONIC INFORMATION IND CO LTD

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

Web crawling method, device, computing device and storage medium

The present disclosure discloses a webpage crawling method, apparatus, computing device and storage medium, the method comprising: creating a crawling queue, obtaining a webpage address from a message queue and placing the webpage address into the crawling queue; starting a crawler process, and starting a browser object through the crawler process, wherein the crawler process is executed by at least one thread; controlling a coroutine corresponding to the thread to obtain the webpage address from the crawling queue, so as to initiate an access request using the webpage address, and suspending the coroutine when the access request initiated by the coroutine waits for a response, wherein the thread switches to execute an unsuspended coroutine to initiate a new access request or process the response returned by the request. According to the embodiments of the present disclosure, the processor and bandwidth utilization can be effectively improved, and the system resource consumption can be reduced.
Owner:XIAMEN MEIYA PICO INFORMATION CO LTD

Concurrent processing event-driven management method, server and storage medium

The invention relates to a concurrent processing event-driven management method, a server and a storage medium, and the method comprises the steps: initializing the priority of an event, collecting the load data of equipment in real time, and judging the current load condition of the equipment; adjusting the priority of the event type according to the current load condition of the equipment: if the equipment is in a high load state at present, taking the event requested by the client as a high priority, the event operated to the client as a medium priority, and the abnormal event as a low priority; if the device is in the low load state at present, the events operated to the client are high priorities, the events requested by the client are medium priorities, and the abnormal events are low priorities; when event triggering is detected, data of a high-priority event is directly read from a kernel buffer area through a zero-copy technology, and the data are allocated to a coroutine to be processed; the medium-priority events and the low-priority events enter a buffer queue and are scheduled according to a delay strategy; and the event processing efficiency is improved.
Owner:CONTEMPORARY NEBULA TECH ENERGY CO LTD

Object counting processing method and apparatus, computer device, and storage medium

PendingCN122457806A
Embodiments of the present application provide an object counting processing method and device, computer equipment, computer readable storage medium and computer program product, belonging to the technical field of network data processing. The method comprises: obtaining an incremental request of a target room, the incremental request carrying a room identifier and an incremental value of the target room; determining a room heat level of the target room, the room heat level being used to represent the order of magnitude of the number of objects in the target room; determining a target counter structure corresponding to the target room from a plurality of counter structures according to the room heat level, wherein different counter structures differ in at least one of the number of operation channels, the number of processing coroutines and the buffer level; routing the incremental request to the target counter structure based on the room identifier; and performing counting processing on the target room based on the incremental value through the target counter structure. The above scheme can reduce the risk of resource occupation or processing bottleneck caused by the mismatch between the unified counter structure and different room loads.
Owner:SHANGHAI BILIBILI TECH CO LTD