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

60 results about "Thread safety" patented technology

Thread safety is a computer programming concept applicable to multi-threaded code. Thread-safe code only manipulates shared data structures in a manner that ensures that all threads behave properly and fulfill their design specifications without unintended interaction. There are various strategies for making thread-safe data structures.

Message processing method and device based on message queue, equipment and medium

The invention provides a message processing method and device based on a message queue, equipment and a medium, and relates to the technical field of computers. The method comprises the steps that two message queues are created in advance and recorded as a first message queue and a second message queue respectively, one of the first message queue and the second message queue serves as a producer queue, and the other one serves as a consumer queue; controlling a producer thread to operate a producer queue according to a producer rule; and controlling the consumer thread to operate the consumer queue according to the consumer rule. Compared with the prior art, two independent message queues are created in advance, and the two message queues can be provided with independent lock mechanisms, which means that lock operation of a producer and a consumer is completely decoupled, and performance loss caused by lock competition can be remarkably reduced, so that a high-performance thread security queue is realized, and the safety of a thread is improved. And the harsh requirements of a modern large-scale distributed system on the data processing speed and the concurrency capability are met.
Owner:厦门天锐科技股份有限公司

River channel confluence stabilization and efficient calculation method of distributed hydrological model CASC2D

The invention relates to a river channel confluence stabilization and efficient calculation method of a distributed hydrological model CASC2D, and the method comprises the steps: employing a semi-implicit local inertial wave method in a river channel unit to carry out the stable solving of a water flow evolution process, effectively inhibiting the numerical oscillation, and improving the model calculation efficiency; meanwhile, parallel computing is carried out on the double-layer nested grid structure of the model through OpenMP, a thread safety control and dynamic scheduling mechanism is matched, synchronous waiting and data competition are remarkably reduced, and the parallel utilization rate is increased. The method is particularly suitable for flood simulation of small and medium-sized watersheds in mountainous and hilly areas, the model calculation efficiency can be improved by 15 times while high-precision simulation is kept, and the risk of numerical instability under the short-time high-intensity rainfall condition is remarkably reduced. The method does not need to depend on a GPU or a distributed cluster platform, has high universality, good portability and engineering realizability, and is suitable for various application scenes such as flood forecasting, risk analysis and real-time scheduling.
Owner:ZHEJIANG INST OF HYDRAULICS & ESTUARY

Method and device for communication between swan gap system equipment and Bluetooth equipment

The invention discloses a method and a device for communication between a piece of swan gap system equipment and Bluetooth equipment. The method comprises the steps that when a communication interface is called by an APP, an SDK stores service parameters transmitted by the communication interface, creates a main thread safety function, starts a sub-thread, generates a Bluetooth communication instruction in the sub-thread according to the service parameters, takes the main thread safety function as a parameter to call a switching interface to switch a currently running thread back to the main thread from the sub-thread, and sends the Bluetooth communication instruction to the main thread; locking the sub-thread, calling the sending interface to send the Bluetooth communication instruction to the Bluetooth device, receiving response data returned by the Bluetooth device within a set time, unlocking the sub-thread, obtaining a response result from the response data in the sub-thread, and sending the response result to the Bluetooth device. And taking the main thread security function as a parameter to call a switching interface to switch the currently running thread back to the main thread from the sub-thread, and returning a response result to the APP by the SDK.
Owner:FEITIAN TECHNOLOGIES CO LTD

In-application event transfer method

The invention relates to an event transfer method in an application, which comprises the following steps of: creating an event dispatching center (EventCenter) as a core component for event transfer, including event registration, event monitoring, event triggering and event transfer; a global and thread-safe Map set is maintained in the event dispatching center EventCenter and is used for storing the mapping relation between the event type and the monitor list; the event type comprises an event name and a unique identifier key; the monitor list comprises all monitor objects registered with the event type; the event scheduling center EventCenter provides a public registration interface and allows a function page to register event monitoring; the event scheduling center EventCenter provides a trigger method as an event trigger interface, and receives an event type and event data as parameters. The method is uniform, efficient and easy to maintain, and development efficiency and code stability can be improved.
Owner:HEBEI TONGFU SHARING TECHNOLOGY CO LTD

Large-scale point cloud management method of point cloud data structure based on three-layer mixed index

The invention discloses a large-scale point cloud management method of a point cloud data structure based on a three-layer mixed index, and belongs to the field of point cloud data processing. Comprising a point cloud pre-segmentation method based on an improved grid method, the time complexity of index establishment is reduced, and the tree establishment efficiency is improved; establishing an index in each grid based on a quadtree method, and reducing the number of point clouds in nodes; retrieval is performed in quadtree nodes based on a k-d tree method, so that the retrieval efficiency is improved; multi-thread concurrent design of a data structure is carried out based on a C + + standard library, the speed of node block building and neighborhood searching is increased, and thread safety maintenance is achieved when multiple threads call the same data structure; based on binary storage and a floating point value compression method, compression storage of the point cloud is realized, and memory occupation of the point cloud is reduced. Compared with a traditional point cloud data structure, the method has the advantages of being high in tree building efficiency, high in search speed, small in memory occupation and the like in large-scale point cloud, and efficient management of large-scale point cloud data can be achieved.
Owner:QINGDAO RES INST OF BEIHANG UNIV

Mass data communication and scheduling system and method of micro-grid

The invention provides a mass data communication and scheduling system and method for a micro-grid, and the system comprises a communication server, the communication server comprises a task scheduling state machine, the task scheduling state machine comprises a multi-layer data container, the data container is configured to be a thread-safe circulating multi-queue used for buffering and distributing data, and the task scheduling state machine comprises a task scheduling state machine; the data structure stored in the data container is a Trie tree structure. According to the method, the task scheduling state machine is designed to process the data, so that the communication blocking problem is reduced, and the flexibility of processing massive real-time data is improved; an asynchronous consumption mode is introduced to solve the problems of performance bottleneck and data congestion of a communication server, the data transmission efficiency is improved, and normal operation of a micro-grid system is ensured; by applying the data container and combining asynchronous multiple tasks and circular multiple queues, the data scheduling precision is improved, efficient processing and management of data scheduling are achieved, the data scheduling efficiency is improved, and the data processing efficiency and management level are improved.
Owner:BEIJING HUAMAO TONGYI TECH CO LTD

Software log processing method supporting thread security, storage medium and equipment

The invention discloses a software log processing method supporting thread security, a storage medium and equipment. The method comprises the following steps: S1, creating a log class; wherein the log data structure uses a message queue mechanism; s2, creating a log system operation thread according to a log thread pointer transmitted by using software, and starting the log system operation thread; wherein the log thread runs in an independent thread when recording a log; s3, newly establishing a current log file path and a historical log file path, opening the current log file path, and if the current log file path is successfully opened, executing a step S4; s4, whether the current log file capacity exceeds the set log file capacity or not is judged, if yes, whether historical log files exist or not is judged, and if yes, the step S5 is executed; s5, deleting the historical log file, renaming the current log file as the historical log file, and creating a new log file; and S6, when the log needs to be written, transmitting the log content as an input parameter to the log writing function, and calling the log writing function to record the log content in the log file. According to the method, smooth data recording of the log system under the high-concurrency condition is ensured, and meanwhile cross-platform transplantation is facilitated.
Owner:SICHUAN AEROSPACE SYST ENG INST

Container log asynchronous streaming transmission method and system based on thread pool and queue

The invention belongs to the technical field of containers, and discloses a container log asynchronous streaming transmission method and system based on a thread pool and a queue, and the method comprises the steps: receiving and analyzing a hypertext transfer protocol request parameter which is initiated by a client and is used for obtaining a target container log, and processing the analyzed hypertext transfer protocol request parameter, generating a log production task; the method comprises the following steps: receiving a log production task based on a pre-configured thread pool, obtaining a log stream of the log production task through a container engine, preprocessing the log stream, and transmitting the preprocessed log stream to a thread security queue for storage; and transmitting the thread security queue to a pre-configured hypertext transfer protocol response header in a block coding format, refreshing to the client, and judging whether the hypertext transfer protocol response header detects a termination signal or a thread event signal. According to the invention, all resources which do not need to be used due to disconnection of the client can be timely and thoroughly released, resource leakage is avoided, and the system stability is improved.
Owner:ZHUOYI ZHINENG

Cross-thread safe communication method and device for game engine based on double-layer type system

The present disclosure relates to the technical field of cross-platform communication, and particularly relates to a game engine cross-thread safe communication method and device based on a double-layer type system, the method comprising: in a main thread where a script engine is located, using a double-layer type system to identify a first abstract logic type and a second specific physical type of a script object; performing deep copy on data of the script object to construct a detached data object independent of a memory space of the script engine; distributing the encapsulated detached data object from the main thread to a native sub-thread through an asynchronous task queue; and in the native sub-thread, restoring the detached data object to a native data object of a target native platform. The present disclosure constructs a detached data object independent of a memory space of a script engine, and uses an asynchronous task queue for cross-thread distribution, thereby eliminating the risk of illegal memory access or engine crash, and significantly improving the running stability and reliability of a game application in a multi-thread communication scenario.
Owner:BEIJING DUODUOJIAYOU INFORMATION TECHNOLOGY CO LTD

Method for driving interrupt controller based on rust language

The invention relates to the technical field of underlying software of a computer system, in particular to an interrupt controller driving method based on a rust language, which comprises the steps of unified hardware abstract interface, strong type interrupt number management, thread safe interrupt distribution, multi-version GIC automatic identification, virtual interrupt mapping, multi-core load balancing and virtualization support. According to the method, a memory security mechanism and a type system of a Rust language are utilized, unified, safe and efficient driving of GICv2 / v3 / v4 under an Arm64 architecture is achieved, memory security defects in traditional C language driving are effectively eliminated, and system reliability and performance under a multi-core and virtualization scene are improved.
Owner:HUNAN ZETIAN ZHIHANG ELECTRONIC TECH CO LTD

Method and device for controlling disk array

The invention relates to a control method and device for a disk array, and belongs to the technical field of new generation information technology industries. In thread pool parallelization, a serial verification step is divided into a plurality of independent tasks, the independent tasks are executed in parallel by different threads, and parallel verification is performed through a thread pool, so that the total delay is reduced, and the requirements of a high-priority module are met; thread blockage and resource competition are avoided, and thread safety of task distribution and result processing is ensured; the DMA transmission mode and the verification type are adjusted according to the request priority, hardware changes such as disk faults and bandwidth fluctuation can be responded through dynamic selection of the DMA transmission mode and the verification type, the real-time performance and the resource utilization rate are balanced, the switching overhead is reduced through thread pre-binding, and the safety is improved through multi-dimensional verification.
Owner:BEIJING GELINK TECHNOLOGY CO LTD

Data processing method and device based on Flink engine, equipment and medium

The invention discloses a data processing method and device based on an Flink engine, equipment and a medium, and relates to the technical field of big data processing.The method comprises the steps that thread security instance creation is conducted on the basis of a preset multi-language serialization framework, and a to-be-serialized object is registered into an obtained target instance; based on a preset integration strategy, integrating the target instance to a data transmission layer and a state management component in the Flink engine to obtain a corresponding integrated calculation engine; and in the process of carrying out data processing by utilizing the integrated calculation engine, triggering serialization operation and / or deserialization operation through a preset character string compression algorithm, a zero copy serialization principle and the target instance so as to complete data transmission operation between corresponding engine nodes and state storage operation at the state rear end of the Flink engine. The efficiency, reliability and applicability of data processing can be effectively improved.
Owner:HANGZHOU DBAPPSECURITY CO LTD

Database connection pool management method and device based on DataX

The invention discloses a database connection pool management method and device based on DataX, and solves the problems of low resource utilization rate, concurrence disorder, thread safety and the like caused by lack of a built-in connection pool in the existing DataX. The method comprises the following steps: deploying an independent connection pool service (CPS), integrating a third-party connection pool and configuring a global maximum connection number; the DataX communicates with the CPS through a network, and each Channel independently applies for connection; the CPS dynamically adjusts the DataX parallelism degree (limitation or waiting when the DataX parallelism degree is insufficient) according to the available connection number, and allocates a unique connection identifier; the DataX sends an SQL request through the identifier, and the CPS calls the third-party connection pool for execution and returns a result; and after the task is completed, notifying the CPS to release the connection. Connection multiplexing is achieved through centralized management, the physical connection sharing risk is avoided, the parallelism degree is dynamically regulated and controlled to guarantee efficient utilization of resources, and DataX task stability and thread safety are improved.
Owner:CHINA ELECTRONICS CLOUD DIGITAL INTELLIGENCE TECH CO LTD

High-concurrency multi-thread infusion monitoring method, system, medium and equipment

The invention discloses a high-concurrency multi-thread infusion monitoring method and system, a medium and equipment. The method comprises the steps that infusion monitoring information is collected in real time; according to a preset MQTT protocol, the infusion monitoring information is converted into data packets conforming to the MQTT protocol, and all the data packets are sent and stored in a preset thread security queue; according to a preset multi-thread consumption mechanism, each working thread is controlled to extract and process each data packet in the thread security queue in parallel, an analysis result of each monitoring service is obtained, and infusion information monitoring is completed. According to the invention, the MQTT protocol is adopted to carry out data packet conversion and a multi-thread consumption mechanism is adopted to process infusion monitoring information, so that efficient, real-time and accurate infusion information monitoring and management are realized.
Owner:SHENZHEN LACHESIS MOBILE MEDICAL TECH CO LTD

Streaming data processing method and device

The invention relates to the technical field of streaming data processing, in particular to a streaming data processing method and device.The method comprises the steps that in response to a transmission request of streaming data, at least one collection thread and at least one transmission thread suitable for the transmission request are started; controlling at least one acquisition thread to write the stream data into a corresponding blocking queue, so as to provide the stream data for at least one transmission thread by utilizing the blocking queue; and controlling the corresponding transmission thread to read the stream data from the blocking queue until the stream data meets a certain stop condition. Therefore, the problems of audio lagging, data loss and even system failure caused by tight coupling of data acquisition, processing and transmission under a single thread, blocking of any link and flow stagnation in related technologies are solved; and if a synchronization mechanism is not used for coordinating the difference between the acquisition rate and the transmission rate in multiple threads, the thread security is difficult to guarantee, the data is easy to be disordered, and the stability and integrity of the system are influenced.
Owner:FAW CAR CO LTD

Dag-based swarm intelligence task scheduling method and system

PendingCN122632891AExecution planAlgorithm
The application provides a DAG-based swarm intelligence task scheduling method and system, which comprises the following steps: a leader intelligent agent analyzes production instructions to generate an initial directed acyclic graph task list; a deep-first traversal algorithm is used to calculate the predecessor node set of each process node and to cache, identify and eliminate the transitive redundant dependent edges in the initial DAG; a topological sorting is performed on the reduced task DAG based on the Kahn algorithm to generate a hierarchical execution plan; and the intelligent agent executor calls sub-intelligent agents through asynchronous coroutine groups in an isolated edge computing sandbox to drive industrial execution mechanisms for parallel operation. In addition, the system realizes cooperative cancellation and working condition continuation based on JSON checkpoints through thread-safe event flags. The application eliminates physical dependence redundancy and process hierarchical scheduling, significantly improves the production rhythm of flexible manufacturing, and guarantees hardware pose safety in a multi-machine cooperative environment through a cooperative cancellation mechanism.
Owner:JIUWEI TURING (SHANGHAI) TECHNOLOGY CO LTD

An asynchronous log processing method for a bare-run program of a relay protection device

An asynchronous log processing method for a bare-metal relay protection device program is applied in both the foreground and background programs of the device. The method includes: providing a thread-safe log interface that can asynchronously output log information via interrupt function calls; the log output interface requesting log storage space from a fixed-length log memory pool and quickly formatting it according to a fixed format encoding; storing the formatted log memory address in a log cache queue; the background program polling the cached log queue, decoding the fixed-format log, formatting it into a standard string for output; and finally, releasing the log memory back to the log memory pool. This invention ensures thread safety of the log output interface call even in interrupt-nested operation modes for bare-metal relay protection devices, maintaining the correctness of output when multiple interrupts concurrently output logs. It addresses the need for high-speed concurrent log output, significantly improving the debugging efficiency and security of device development.
Owner:BEIJING SIFANG JIBAO ENG TECH +1

Redis multi-data-source dynamic switching method

The invention relates to a Redis multi-data-source dynamic switching method, which comprises the following steps of: when a system is started, reading and analyzing an external configuration file in a YAML / Properties format by a dynamic configuration analysis module, and constructing configuration data after acquiring a Redis instance connection parameter and a connection pool parameter; in business code execution, when a method with a user-defined annotation is called, an annotation driving interception module triggers and extracts a data source name to a registration center to search for a corresponding instance, the data source name is bound to a current thread context through ThreadLocal, Redis methods such as get and set are called through a unified operation interface module, the thread context is cleaned after operation is completed, and the corresponding instance is stored in the registration center. If abnormity occurs in the whole process, standardized abnormity is thrown out, and detailed error information is recorded for debugging. According to the method, through annotation driving, dynamic configuration analysis and a thread security isolation mechanism, the multi-data source management process is simplified, and the flexibility and maintainability of the system are improved.
Owner:HEBEI TONGFU SHARING TECHNOLOGY CO LTD

A data carryover method

The application discloses a data closing method, relates to the technical field of data processing, and aims to solve the problem that thread safety cannot be guaranteed in a multi-thread concurrent processing mode, and comprises the following steps: S1, initializing a resource configuration related class, instantiating a conversion object, instantiating a reading object, initializing a job parameter, and initializing a resource related class; S2, judging whether the total number of records to be processed exceeds a limit; judging whether all reading records have been processed; S3, obtaining a write business object according to the reading records; S4, processing the write business object, and obtaining a task write business object set; and S5, processing the task write business object set, and executing a task. The data closing method can separate business and technology, avoid the increase of development difficulty caused by the interweaving of business and technology, process general logic, solve safety and performance problems, reduce development difficulty, improve development efficiency, and avoid the occurrence of thread safety and resource leakage problems.
Owner:SUPCON TECH CO LTD

A thread pool and queue-based container log asynchronous streaming method and system

The application belongs to the technical field of containers, and discloses a container log asynchronous streaming method and system based on a thread pool and a queue, which comprises the following steps: receiving and analyzing a hypertext transfer protocol request parameter for obtaining target container logs initiated by a client, and processing the analyzed hypertext transfer protocol request parameter to generate a log production task; based on a pre-configured thread pool, receiving the log production task, obtaining a log stream of the log production task through a container engine and pre-processing the log stream, and transmitting the pre-processed log stream to a thread-safe queue for storage; transmitting the thread-safe queue to a pre-configured hypertext transfer protocol response header in a block encoding format, refreshing to the client, and judging whether the hypertext transfer protocol response header detects a termination signal or a thread event signal. The application can timely and completely release all resources that are no longer needed due to disconnection of the client, avoids resource leakage, and improves system stability.
Owner:ZHUOYI ZHINENG

Qt-based asynchronous remote invocation development system and method

The application discloses a development framework and method for asynchronous remote calling based on Qt, the development framework for asynchronous remote calling based on Qt comprises a base class and a public calling function callFunc, the base class realizes a callSelfFunc function, a function is found and called through a reflection mechanism provided by Qt, and a called module inherits the base class, the public calling function "callFunc finds a called module object according to a module name, generates a QEventLoop object, and calls the callSelfFunc function of the called module through an invokeMethod provided by Qt, the development framework for asynchronous remote calling based on Qt is based on a development framework for message transmission based on Qt, a return value of the called module is called through the development framework for message transmission and is synchronously returned to a calling module, the logical splitting problem is solved, the implementation complexity is reduced, meanwhile, a non-thread-safe "called function can be called in a multi-thread environment, and some special application scenarios are adapted.
Owner:GUODIAN NANJING AUTOMATION

Multi-thread disk access method and device for distributed storage system and medium

The invention provides a multi-thread disk access method and device for a distributed storage system and a medium, and is applied to the technical field of disk access. The method comprises: receiving a mapping relationship issued by a monitoring server, the mapping relationship representing a communication connection relationship between each network port and each monitoring endpoint in a disk, and each monitoring endpoint creating for a corresponding disk through a network storage resource component for constructing a communication connection channel with a monitoring endpoint corresponding to the upstream; determining a target communication connection relationship according to a mapping relationship issued by the monitoring server; constructing a target communication connection channel for the target network port and the target monitoring endpoint in the target communication connection relationship through a preset communication protocol; and performing multi-thread access on the disk based on the target communication connection channel. Therefore, after the upstream and the downstream of each monitoring endpoint are connected, a plurality of connecting channels are formed, so that the thread safety problem caused by the fact that a plurality of threads adopt the same channel to directly operate the same equipment is avoided.
Owner:JINAN INSPUR DATA TECH CO LTD

AI tool invocation system and method for resource-constrained embedded devices

This invention relates to the field of embedded systems technology and discloses an AI tool invocation system and method for resource-constrained embedded devices. The system includes a tool list dynamic paging serialization module, a tool permission isolation module, a cross-thread safe scheduling and execution module, a hardware peripheral self-registration and discovery module, a multimodal sensor fusion triggering module, a device state machine, and a protocol communication module. The system generates a tool list response by paging and serializing registered tools; completes tool registration during the hardware peripheral initialization phase; converts multimodal sensor events into semantic tags and participates in scheduling processing; and achieves device state control and communication interaction. By setting up a tool list dynamic paging serialization module, this invention serializes registered tools one by one in a preset order upon receiving a tool list query request, thereby enabling the tool descriptions to be transmitted in batches.
Owner:HANGZHOU PANDA ARTIFICIAL INTELLIGENCE CO LTD

Thread-safe index dynamic update method and system

The present invention provides a thread-safe index dynamic update method and system, comprising: step S1: reading index file information in a directory to be indexed; step S2: initializing an index hash queue and an index status set according to the index file information, and establishing a dynamic monitoring instance; step S3: the dynamic monitoring instance monitors index changes according to the index status set within a preset interval, and when the index changes, step S4 is triggered, otherwise dynamic monitoring continues; step S4: checking the index hash queue, when the number of idle redundant indexes in the index hash queue is less than a threshold, a new index is created and added to the index hash queue, otherwise the idle redundant indexes in the index hash queue are directly changed.
Owner:IND BANK CO +1

Click anti-shake method and related equipment

The invention discloses a click anti-shake method and related equipment, and relates to the technical field of Android application software, and the method comprises the steps: when a target method is called, detecting the target method through a section type annotation of a section-oriented programming framework, and judging whether the target method is a preset anti-shake object; when the target method is the preset anti-shake object, obtaining a target anti-shake parameter; and judging whether to execute the target method according to the target anti-shake parameter. According to the method, based on a section-oriented programming framework and compiling period code weaving, a non-intrusive and differentiated anti-shake strategy can be realized, code redundancy is avoided, maintainability and readability are improved, and thread safety is ensured through atomic operation.
Owner:VOYAH AUTOMOBILE TECH CO LTD

Bytecode-based thread security monitoring method, apparatus and device, and readable medium

The embodiment of the invention discloses a thread security monitoring method and device based on byte codes, equipment and a readable medium. A specific embodiment of the method comprises the following steps: controlling a monitoring module included in the thread security monitoring system, and monitoring a field access operation for a target thread in real time; performing access analysis processing on the field access operation to generate an access analysis result; determining the thread type of the access thread; thread security problem information corresponding to the field access operation is generated; generating an access report, and recording stack information accessed by the field access operation; adding the stack information into the access report, and sending the added access report to the target terminal for display; and in response to a received stop instruction which is sent by the target terminal and aims at the thread security problem information, performing a stop operation on the target thread. According to the embodiment, the access operation can be terminated in time when the access is abnormal, so that the RSM system can be protected in time, and the running safety of the RSM system is improved.
Owner:中信证券股份有限公司

Bytecode-based thread safety monitoring methods, devices, equipment, and readable media

This disclosure provides embodiments of a bytecode-based thread safety monitoring method, apparatus, device, and readable medium. One specific implementation of the method includes: controlling a monitoring module within a thread safety monitoring system to monitor field access operations on a target thread in real time; performing access analysis processing on the field access operations to generate access analysis results; determining the thread type of the accessing thread; generating thread safety issue information corresponding to the field access operation; generating an access report and recording the stack information accessed by the field access operation; adding the stack information to the access report and sending the added access report to a target terminal for display; and terminating the target thread in response to receiving a stop command from the target terminal indicating a thread safety issue. This implementation can promptly terminate access operations when access anomalies occur, thereby protecting the RSM system and improving its operational security.
Owner:中信证券股份有限公司

Quick data conversion method, system and equipment based on cross-table structure and medium

The invention provides a quick data conversion method, system and device based on a cross-table structure and a medium, a configuration module associatively queries query results of multiple types of configuration tables to generate configuration data for cross-table data conversion, and the configuration data is stored in a cache module to obtain a configuration data cache for determining an association relationship between the tables and fields; the queue module adopts a thread security queue to store external to-be-converted source table data into a read queue to obtain to-be-converted source table data in the read queue; a data conversion module obtains data from the read queue, assigns values through a dynamic field mapping mechanism by utilizing a configuration data cache identification table and a field association relationship, and stores the converted data into a write queue to obtain target table data; and the database operation module obtains the target table data from the write queue, determines a service scene according to the service identifier in the configuration data cache, and stores all the target table data in the scene into a single transaction. By adopting the method, the configuration and data conversion efficiency can be improved, the database load is reduced, and the data storage security and the database falling consistency are guaranteed.
Owner:PICC INFORMATION TECH CO LTD +1

Interlayer independent balance tree parallel construction method

The invention discloses an inter-layer independent balance tree parallel construction method, which comprises the following steps that: an N-balance minimum spanning tree is constructed for each node of the finest layer by adopting a layer-independent parallel algorithm, and the node of the finest layer at least comprises a seed node; combining all N-balanced minimum spanning trees into a single tree by using a thread-safe hash table to eliminate duplicate nodes representing nodes that are repeatedly created in the process of constructing a single tree structure; establishing a father-son relationship for all the intermediate nodes, and constructing all leaf nodes based on the intermediate nodes and the father-son relationship to complete the construction of the balance tree; wherein the intermediate node represents a node comprising at least one child node, and the leaf node represents a node not comprising any child node. According to the method, tree construction is eliminated, dependency of the refining process on layers is balanced, repeated internal nodes are prevented from being constructed, and the algorithm is completely compatible with the GPU.
Owner:INST OF SOFTWARE - CHINESE ACAD OF SCI

Systems and methods to use non-thread safe apis in threaded programs using thread-safe interfaces

Embodiments of the present disclosure provide a system and method to provide a thread-safe environment for non-thread-safe objects used with multi-thread processes. According to one embodiment, an Information Handling System (IHS) includes at least one processor, and at least one memory having program instructions that upon execution by at least one processor, cause the IHS to create multiple objects including at least one non-thread-safe object, generate a thread-safe interface associated with the non-thread-safe object, and when a task request is received from a multi-threaded process, generate a single thread to perform a task with the non-thread-safe object. The task is associated with the task request.
Owner:DELL PROD LP