Patents
Literature
Hiro is an intelligent assistant for R&D personnel, combined with Patent DNA, to facilitate innovative research.
Hiro

169 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.

Asynchronous task execution method, device and system

The invention provides an asynchronous task execution method, device and system. The method comprises the following steps of: when the current thread submits the current task to a thread pool through a thread pool API, establishing a corresponding current coroutine for the current task under the current thread, wherein the current task is a task, possible to be blocked, determined by the current thread in the execution process; and processing the current task by utilizing the current coroutine. According to the method, device and system, when the current thread of an application program determines that the execution of the current task is possible to be blocked, the current task is not sent to a task queue of the thread pool, namely, the current task is not scheduled and processed by the thread pool; and a coroutine is newly established under the current thread and the current task is processed by the coroutine. Therefore, the method, device and system can solve the problems that the consumption of a CPU is increased and the performance of a processor is influenced as the task possible to be blocked is processed by the thread pool.
Owner:ALIBABA GRP HLDG LTD

Blocked task scheduling method and device

The invention provides a blocked task scheduling method. The method comprises the steps as follows: allocating coroutines for task functions, and calling the task functions in the coroutines; when calling of the task functions is blocked, suspending the coroutines, and setting the coroutines to be in suspended states; monitoring system I / O (input / output) events, finding the coroutines corresponding to the system I / O events, and setting the coroutines to be in running states; finding out the coroutines in the running states, resuming the found coroutines, and correspondingly processing the system I / O events. Besides, the invention further provides a blocked task scheduling device. By the aid of the blocked task scheduling method and device, the concurrency amount of a system can be increased.
Owner:TENCENT TECH (SHENZHEN) CO LTD +1

Communication method based on coroutine mechanism

The invention provides a communication method based on a coroutine mechanism. The communication method based on the coroutine mechanism comprises the following steps that firstly, in a main thread circulation process, a socket is monitored; secondly, whether data is input into the socket or not is judged, and the third step is executed if yes; thirdly, the input data is subjected to decoding analysis, whether the input data is request data or response data is judged, the fourth step is executed if the data is request data, and the fifth step is executed if the data is response data; fourthly, a coroutine function is established and used for processing the request data; fifthly, a coroutine function corresponding to the response data is searched for according to the response data, and the coroutine function is switched to process the response data. By means of the communication method based on the coroutine mechanism, the problem of waiting in a blockage mode can be solved, and data access conflict in multi-thread implement can be avoided.
Owner:NANJING BALANCE NETWORK TECH CO LTD

Message event distribution method, distribution platform, system and server

The invention provides a message event distribution method, a distribution platform, system and a server, which relate to the technical field of the Internet. The method comprises the steps of obtaining pre-stored configuration information if a message event published by a message publishing service is monitored, splitting the message event according to the configuration information to obtain at least one target message event corresponding to the message event, storing the at least one target message event into a message queue corresponding to the message subscription service in a classified manner, and starting a pre-configured coroutine group of the message subscription service, obtaining a target message event corresponding to the message subscription service from the message queue through the coroutine group, and pushing the target message event to the message subscription service. According to the message event distribution method, the distribution platform, the system and the server provided by the invention, message queue clustering can be quickly carried out, later maintenance and monitoring are facilitated, and the stability of the whole message event distribution processis further improved.
Owner:SHENZHEN EEBOCHINA TECH CO LTD

Method and equipment used for processing event by website server

The invention aims to provide a technology for processing an event by a website server. The technology comprises the following steps that: operating a main thread, suspending the main thread after the main thread creates a coroutine on the basis of the processing request of the event, and switching to the coroutine; operating the coroutine, creating a communication pipeline by the coroutine, processing the main business logic of the event by a working thread pool, suspending the coroutine, and switching to the main thread; operating the main thread again, continuing an event processing circulation by the main thread until a message that the working thread pool finishes processing is received, suspending the main thread, and switching to the coroutine, wherein the message is sent from the communication pipeline; and operating the coroutine again, processing the secondary business logic of the event by the coroutine, finishing the coroutine after processing is finished, and switching to the main thread. Therefore, other requests, which are subjected to parallel processing, of the main thread can be processed in time, and the average response time of the system is shortened.
Owner:ALIBABA GRP HLDG LTD

Service request processing method and apparatus, electronic device, and storage medium

The application provides a service request processing method and apparatus, an electronic device, and a storage medium, and belongs to the technical field of computers. The method includes steps: a network server monitors whether currently there is a coroutine entering an idle state; the network server determines a current to-be-distributed target service request according to acquisition times requested by servers in a service request queue if monitoring that a first coroutine enters the idle state; and the network server distributes the target service request to the first coroutine to enablethe first coroutine to respond to the target service request. Therefore, according to the service request processing method, reduction of the processing efficiency or even crash of the server can be avoided, the stability of network services is improved, and the user experience is improved.
Owner:BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD

Coroutine-based server monitoring method, equipment and readable medium

The invention discloses a coroutine-based server monitoring method, which comprises the following steps of: creating a plurality of server monitoring tasks, and allocating the tasks to a plurality ofthreads; creating coroutines in each thread, wherein the number of the coroutines is equal to that of the distributed tasks, and distributing one task to each coroutine; determining whether to executethe current coroutine or not according to whether the thread has network waiting or not; and in response to the decision to execute the current coroutine, enabling the coroutine to establish a communication connection with the server to perform a monitoring task. The invention further discloses computer equipment and a readable storage medium. According to the coroutine-based server monitoring method and the equipment, a large number of server resources can be monitored through a single node. Thread resources can be saved. The CPU utilization rate is increased, and system resources are fullyutilized.
Owner:INSPUR SUZHOU INTELLIGENT TECH CO LTD

Coroutine implementation method and apparatus

Embodiments of the present invention provide a coroutine implementation method and apparatus. The method comprises: determining a target memory space required by a function call stack corresponding toa coroutine according to a script language byte code of a function corresponding to the coroutine, wherein one coroutine is corresponding to one function call stack; allocating an independent memoryspace corresponding to the target memory space for the function call stack, wherein the memory space of the function call stack corresponding to each coroutine does not interfere with each other; in the independent memory space, filling each structure of the function call stack with the content; preprocessing the function call stack before execution of the coroutine; and directing the execution state of the virtual machine to the function call stack so as to execute the coroutine. Further, the embodiments of the present invention can also implement coroutine switching. According to the embodiments of the present invention, the efficiency of the coroutine implementation can be improved.
Owner:TENCENT TECH (SHENZHEN) CO LTD

Cooperative scheduling using coroutines and threads

A database system may provide definition of a first plurality of tasks associated with coroutine execution, and a second plurality of tasks associated with task-specific thread execution. Also provided may be spawning of a control thread and a plurality of threads, each of the plurality of threads associated with one of the second plurality of tasks, and running of the control thread to determine if a task of the first plurality of tasks and the second plurality of tasks is associated with coroutine execution or with task-specific thread execution. If the task is determined to be associated with coroutine execution, the control thread may be run to swap a coroutine context of the control thread with a coroutine context of the task. If the task is determined to be associated with thread execution, the control thread may be run to resume a thread associated with the task and to suspend the control thread.
Owner:SAP AG

Channel package packaging method and device and computer equipment

The invention discloses a channel package packaging method and device and computer equipment. The method comprises the steps of receiving a channel package packaging request of target software; obtaining a software mother package of the target software and all channel information included in the channel package packaging request; calling a channel configuration file of a corresponding channel according to each piece of channel information; and performing resource combination on each channel configuration file and the software mother package through a plurality of coroutine parallel processingmodes to obtain a channel package of each channel corresponding to the target software. The invention further provides a computer readable storage medium. According to the invention, the plurality ofcoroutines are established in the thread to correspond to each channel, so that multi-channel parallel packaging is executed, and the flexibility and the efficiency of executing channel package packaging on the plurality of channels can be effectively improved.
Owner:SHANGHAI HODE INFORMATION TECH CO LTD

Data processing method and device based on block chain and computer equipment

The invention relates to a data processing method and device based on a block chain, computer equipment and a storage medium. The method comprises the following steps: acquiring a plurality of servicerequests, wherein the service requests carry service data and service type identifiers; obtaining a service chain corresponding to each service type identifier, each service chain having a corresponding coroutine in each service container, each service container providing different services, and each service being used for executing a data processing link of a service data processing flow; according to the business data processing flow, performing data processing of various business data in parallel by running coroutines corresponding to various business chains in various service containers;and after consensus with other participating nodes is achieved, storing data processing results of various service data in parallel by running the coroutine corresponding to each service chain in theservice container providing the storage service. When multiple types of service requests are processed, the data processing efficiency can be improved by adopting the method.
Owner:KINGDEE SOFTWARE(CHINA) CO LTD

Coroutine-based asynchronous system calling system

The invention discloses a coroutine-based asynchronous system calling system, which comprises a recording module, an execution module and a return module; a calling queue is arranged between the recording module and the execution module, and a return queue is arranged between the execution module and the return module; the recording module is used for receiving a system call request initiated by acoroutine, recording system call parameters and coroutine information contained in the system call request, storing the system call parameters and the coroutine information into a call alignment, pausing the coroutine initiating system call, and then judging whether to execute system call or not; the execution module is used for executing the system call transmitted by the call queue by adoptingan auxiliary thread, and storing a system call return value and cothread information into the return queue after the system call is executed; and the return module is used for reading the system callreturn value from the return queue and adding the coroutine to the running queue according to the coroutine information so as to recover coroutine running. The asynchronous execution problem of systemcalling based on the coroutine is solved.
Owner:ZHEJIANG UNIV

A service logic execution system and method based on a dynamic language

The invention discloses a service logic execution system and method based on a dynamic language. The system comprises a plurality of service logic execution devices, each service logic execution device comprises a scheduling unit and a plurality of service virtual machines. Each decvie comprises a scheduling unit and a plurality of service virtual machine, the unit is used for receiving command requests, according to the service and a virtual machine mapping table; adding the command request into a command request buffer area of a corresponding service virtual machine; wherein each service virtual machine comprises a service virtual machine thread for regularly checking whether a new command request exists in a command request buffer area or not, extracting a coroutine object from an idlecoroutine queue when the new command request exists and the idle coroutine exists in the idle coroutine queue, and then injecting new command request data into the extracted coroutine; the command request buffer area is used for storing a command request; and the idle coroutine queue is used for storing the idle coroutine of the service virtual machine. The invention belongs to the technical fieldof information, and provides a high-reliability and high-stability service logic execution environment for a large-scale application system.
Owner:EB INFORMATION TECH

Coroutine-based data processing method and device, computer equipment and storage medium

The invention discloses a coroutine-based data processing method and device, computer equipment and a storage medium. The method comprises the steps of receiving task set data sent by an uploading end; counting the total number of calculation tasks in the task set data to create coroutines with the same number as the total number of the tasks, and correspondingly allocating one calculation task toeach coroutine; generating a corresponding dynamic link library file according to the computing task correspondingly distributed by each coroutine; if a calling instruction of a JNI interface corresponding to the dynamic link library files is detected, starting coroutines according to the dynamic link library files respectively, operating calculation tasks in the task set data through the coroutines respectively, obtaining calculation results corresponding to the calculation tasks, and forming a calculation result set is formed; and sending the calculation result set to the uploading end. According to the method, the coroutine participates in calculation so as to reduce I / O blockage in a server, the utilization rate of a CPU in the server is also reduced, and the calculation efficiency isimproved.
Owner:PING AN TECH (SHENZHEN) CO LTD

Coroutine monitoring method and apparatus

The invention relates to the communication technical field, and discloses a coroutine monitoring method and apparatus for solving the technical problem of system delay caused by coroutine abnormity. The coroutine monitoring method comprises the steps of performing monitoring on at least one coroutine in a first progress through a monitoring thread in the first progress to determine whether a coroutine, the operating duration of which exceeds a preset operating duration, exists in the at least one coroutine or not, wherein the respective preset operating duration of each coroutine in the at least one coroutine is pre-recorded; and if it is determined that the operating duration of the first coroutine in the at least one coroutine exceeds a first preset operating duration set for the first coroutine, stopping the operated first coroutine through the monitoring thread.
Owner:ZTE CORP

Method for processing high-concurrency IO based on PHP

The invention discloses a method for processing high-concurrency IO based on PHP. The method comprises: Swoole creating one or more processes according to configuration; the Master process creating NReactor threads; creating a coroutine in each Reactor thread; and asynchronously processing the IO task through coroutine scheduling. According to the invention, a Swoole model is used, through the multi-thread Reactor model (based on epoll) and a multi-process Worker, a coroutine is created in each thread. Through coroutine scheduling, an IO task is asynchronously processed, namely, when meetingthe condition of IO time consumption, firstly processing other code logics through coroutine scheduling until IO is completed and then continuing to execute previous codes; according to the method, system resources are fully utilized, IO blockage waiting and system resource waste are reduced, the IO processing capacity under high concurrency is greatly improved, and the problems of Accept performance bottleneck and convulsion group can be solved.
Owner:武汉智美互联科技有限公司

Information processing method and system and computer storage medium

The invention discloses an information processing method and system and a computer storage medium. The information processing method comprises the steps that a first coroutine performs an obtaining function to access a preset task queue; a second coroutine produces a task according to a received instruction and places the task into the task queue; and the first coroutine obtains the task from the task queue and processes the task. According to the embodiment of the invention, the coroutines are operated independently, locking is avoided, the operation efficiency is improved, the information processing timeliness and high performance are ensured, the response time of a server to a client is improved, the time delay is reduced, and the user experience is improved.
Owner:浙江祥源文旅股份有限公司

Method, device and system for requesting data

The invention discloses a method, a device and a system for requesting data, and relates to the technical field of internets, which aims at solving the problem of paralysis caused by excessive query requests of a database. The method comprises the following steps of establishing a first coroutine corresponding to the database, detecting the load state of the database through the first coroutine, and obtaining the detection result; when an query request reported by a terminal is received, establishing a second coroutine corresponding to the query request, and obtaining the detection result from the first coroutine through the second coroutine; when the detection result represents that the database is in the overload state, stopping forwarding the query request to the database. The method is mainly applied to postgresql database systems.
Owner:BEIJING QIANXIN TECH

Game system and game processing method

ActiveCN106390453ASimplify asynchronous processingReduce complexityVideo gamesAsynchronous processingShared memory
The invention provides a game system and a game processing method. The system comprises a main coroutine and at least one logic coroutine, wherein the main coroutine is in charge of determining an asynchronous message corresponding to the logic coroutine when it switches to the main coroutine from the logic coroutine, writing the asynchronous message into a shared memory region between the main coroutine and the logic coroutine and pulling up the logic coroutine; the logic coroutine is used for saving an asynchronous context in a corresponding coroutine memory region when executed current game logic conforms to a preset asynchronous condition, and the logic coroutine is also used for switching back to the main coroutine and hanging up itself; and the logic coroutine, which is pulled up by virtue of the main coroutine, is used for calling and recovering the asynchronous context from the coroutine memory region, reading the asynchronous message from the shared memory region and continuing to execute the game logic. With the application of invention, an asynchronous processing mode of game data is simplified.
Owner:TENCENT TECH (SHENZHEN) CO LTD

Method and device for realizing message queue reconnection, storage medium and device

The invention provides a method and device for realizing message queue reconnection, a storage medium and a device, and the method comprises the steps of executing a preset monitoring coroutine afterthe RabbitMQ connection is successfully established so as to monitor the connection state of the RabbitMQ connection; and when it is monitored that the RabbitMQ connection is in a connection failure state, calling a preset connection establishment program through the monitoring coroutine to reestablish the RabbitMQ connection. The invention provides a mode for realizing the message queue reconnection, so that the normal RabbitMQ connection is kept between the main service and the RabbitMQ service, when the RabbitMQ connection is interrupted or false dead, the automatic recovery of the connection is achieved, and the situation that a message communication mechanism is incomplete and the service processing is affected due to interruption or false dead of the connection is avoided.
Owner:GREE ELECTRIC APPLIANCES INC

Implementation method and system for sharing and using Spark cluster by multiple users in Python-Web environment

ActiveCN110471777AService and Support Task Calculation RequestMeet the needs of real-time interactive useDatabase management systemsInterprogram communicationWeb environmentReal-time computing
The invention relates to an implementation method and system for sharing and using a Spark cluster by multiple users in a Python-Web environment. Multiple processes are introduced to support multipleSpark contexts, and the limited number of Spark contexts can be used for serving and supporting task calculation requests of multiple users. Coroutines instead of threads are used for guarding sub-processes, and the coroutines are autonomously scheduled. A task calculation result or state can be returned asynchronously so as to respond to a request of a user in real time, and the requirement of Web real-time interactive use is met. The characteristic of scheduling among Spark tasks is utilized. For some tasks with long time consumption, whether the tasks are terminated or not is given to the user, and the Web user can terminate the running Spark tasks. The problem that multiple Web users share the Spark cluster in the Python development environment can be solved.
Owner:COMP NETWORK INFORMATION CENT CHINESE ACADEMY OF SCI

PLC supporting coroutine function

The invention provides a PLC supporting a coroutine function, which comprises a central processing unit, a memory, a power supply module, a program input device, and an input and output circuit. Program coroutine function supports are expanded in the central processing unit. Coroutine key words are added to an ST language for PLC programming for marking starting and ending of the program coroutine; a coroutine basic operation library function support is added to the ST language for PLC programming, the ST language compiler for PLC programming independently compiles each coroutine section, and each coroutine has the self register context and the stack; the ST language compiler for PLC programming compiles and generates byte codes, the byte codes are downloaded to the PLC, and a byte code virtual machine for the PLC executes the byte codes; and a support for a coroutine instruction set is added to the PLC byte code virtual machine. Thus, the process control programming complexity is simplified, and the real-time performance and the execution efficiency for execution of multiple tasks can be greatly enhanced.
Owner:湖南戈人自动化科技有限公司

Data processing method, device and equipment and storage medium

The method is suitable for the technical field of computers, and provides a data processing method comprising: in response to a plurality of user instructions sent by a plurality of terminal devices,putting the user instructions into a first data queue of a scheduling thread corresponding to a user instruction category, and then putting the user instructions in the first data queue into a seconddata queue of a co-thread corresponding to a user in the scheduling thread; and enabling the scheduling thread to traverse the to-be-scheduled co-thread, if the currently traversed to-be-scheduled co-thread satisfies a call-in condition, a call-in operation is performed on the co-thread, and if the called-in co-thread satisfies a call-out condition, a call-out operation is performed on the co-thread. Through said steps, processor resources can be fully utilized to achieve data processing efficiency close to parallel processing.
Owner:上海金仕达软件科技股份有限公司

Intelligent contract parallel execution method and device

PendingCN111563820AImprove concurrencySolve the problem of low transfer transaction processing speedFinancePayment architectureFinancial transactionSmart contract
The embodiment of the invention provides an intelligent contract parallel execution method and device, and the method comprises the steps: generating a weighted directed graph of a transaction corresponding to each intelligent contract belonging to an account transfer type when each preset coroutine is applied to concurrently execute the intelligent contracts, corresponding to transaction information in each contract channel, belonging to an evidence storage type, wherein the coroutines are in one-to-one correspondence with the contract channels, and each contract channel comprises multiple pieces of transaction information with the same intelligent contract chain code number; and generating an account transfer transaction parallel sequence according to the weighted directed graph, and executing each intelligent contract belonging to the account transfer type, so as to enable the intelligent contracts of which the transaction information in each contract channel belongs to the evidencestorage type and the account transfer type to be executed in parallel. According to the method, the concurrency of the smart contract in the block can be effectively improved, the transaction successrate in the block can be effectively improved on the basis of effectively ensuring the execution efficiency and reducing the execution cost, and particularly, the processing success rate of the transfer transaction can be improved.
Owner:INDUSTRIAL AND COMMERCIAL BANK OF CHINA

Method for carrying out vulnerability early warning aiming at large-scale target

InactiveCN107766730AImprove vulnerability warning speedHigh speedPlatform integrity maintainanceNetwork packetParallel processing
The invention discloses a method for carrying out vulnerability early warning aiming at a large-scale target. The method comprises the following steps that: for a target vulnerability, obtaining the vulnerability detailed information of a target vulnerability, and formulating the vulnerability detection tool of the target vulnerability; on the basis of a coroutine technology, creating a request sending and receiving response system which aims at the large-scale target, then, combining with the vulnerability detection tool to create mass vulnerability detection systems which aim at the large-scale target, and obtaining a target list which has the target vulnerability, wherein the request sending and receiving response system is provided with a plurality of processes, each process is provided with a main thread and a plurality of coroutines for processing a plurality of received requests in parallel and responding to data package contents, and the mass vulnerability detection systems areused for receiving the detection tasks of a plurality of targets to be detected and obtaining the target list which contains the target vulnerability; and on the basis of the vulnerability detailed information of the target vulnerability, vulnerability early warning information is generated. Speed of vulnerability detection, which aims at the large-scale target, can be greatly improved.
Owner:北京知道未来信息技术有限公司

Micro-service request response viewing method and system based on nginx

The invention provides a microservice request response viewing method and system based on nginx. The microservice request response viewing method comprises the steps that the format of an nginx log is self-defined through log_format of the nginx, lua is embedded into the nginx through lua-nginx-module, and configuration for obtaining response data returned by a back-end server is written in a coroutine of the lua; receiving the request data and the response data by the nginx, outputting the request data and the response data by utilizing the access_log of the nginx to generate the nginx log, and outputting the nginx log to a back-end server; the configuration supporting the syslog being written in nginx.conf of the nginx, and then outputting the nginx log to a syslog server; and storing the nginx log in the syslog server in the ElasticSearch, and checking the nginx log in the ElasticSearch. The method does not affect normal operation of online micro-service applications, facilitates data query, is high in applicability, is highly decoupled from back-end applications, and is easy for later maintenance and expansion. Developers can be helped to quickly analyze and diagnose the performance bottleneck under the distributed application architecture, and the development and diagnosis efficiency under the micro-service age is improved.
Owner:BEIJING CHANGYANG TECH CO LTD

Application program running method, device and system

The invention discloses an application program running method, device and system. The method comprises: creating a main coroutine; sequentially executing codes of the application programs through themain coroutine; when the main coroutine executes the target service to be called, creating a sub-coroutine corresponding to the target service through the main coroutine, and sending a service callingrequest of the target service to a server through the sub-coroutine; after the sub-coroutine sends a service calling request to the server, switching to the main coroutine for running through the sub-coroutine so as to sequentially execute codes which are not executed yet in the application program through the main coroutine; and when the main coroutine detects a service data feedback notification returned by the server for the target service, enabling the main coroutine to control to switch to the sub-coroutine corresponding to the target service, and receive service data corresponding to the target service from the server by operating the sub-coroutine corresponding to the target service. According to the scheme, the running performance of the application program can be improved.
Owner:ZHENGZHOU XIZHI INFORMATION TECH

Request processing method and device, electronic equipment and computer readable storage medium

The invention provides a request processing method and device, electronic equipment and a computer readable storage medium, and relates to the technical field of data processing. The method comprisesthe steps of obtaining n requests, wherein each request corresponds to a cothread on the thread, and n is an integer greater than 0 and is less than or equal to a preset threshold; determining one dominant coroutine in the n coroutines according to a preset competition rule, and taking the other n-1 coroutines as following coroutines; merging the n requests through the dominant coroutine to obtainmerged request data; and submitting the merge request data to the computing device. According to the embodiment of the invention, when the request processing method is used for processing a pluralityof requests input by a user, the coroutines are introduced to serve as the execution units, the obtained n requests correspond to the coroutines respectively, the dominant coroutines are determined according to the preset competition rule to merge the n requests, server resource consumption caused by cross-thread competition is reduced, and therefore the computing performance of the server can bebrought into full play.
Owner:北京小桔科技有限公司

Virtual machine backup method and device, electronic equipment and readable storage medium

The invention discloses a virtual machine backup method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: updating offset information corresponding to a target virtual machine if a target coroutine is detected, wherein the target coroutine is any coroutine in an idle state in the plurality of coroutines; based on the offset information, reading corresponding to-be-backed-up data by utilizing the target coroutine; writing the to-be-backed-up data into the target position by utilizing the target coroutine; according to the method, in theprocess that a target coroutine reads to-be-backed-up data, other coroutines can also read the data; or read data can be written into the target coroutine, and other coroutines can read or write thedata in the process of writing the data into the target coroutine, so that concurrent processing of virtual machine backup is realized; and multiple coroutines are subjected to concurrent processing,so that the data reading speed and the data writing speed are greatly increased, the virtual machine backup speed is increased, and the backup time is shortened.
Owner:SANGFOR TECH INC

Method and device for realizing PHP (Hypertext Preprocessor) core reentrancy, server and memory medium

ActiveCN108647087AReentrantWith coroutine featureProgram initiation/switchingComputer engineeringPreprocessor
The invention discloses a method and device for realizing PHP (Hypertext Preprocessor) core reentrancy, a server and a memory medium and belongs to the technical field of a computer. The method comprises the steps of allocating a coroutine to a reentrant PHP core when the server receives a processing request; operating the PHP core through the coroutine, thereby obtaining an operation case of thePHP core; selecting a case identity of an idle case according to a global case table of the PHP core, wherein the global case table stores a corresponding relationship between at least one case identity and a case state; and switching the operation case of the PHP core to the selected idle case according to the case identity, and switching the access of a structural body pointer resource in the PHP core to a resource corresponding to the idle case according to the case identity. According to the method, the device, the server and the memory medium, the PHP core reentrancy is realized, so the PHP core has a coroutine characteristic, and the concurrent processing capability of the PHP core is improved.
Owner:TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products