Lua coroutine-based program concurrent IO optimization method and system
An optimization method and coroutine technology, applied in the direction of program code conversion, program control design, program control device, etc., can solve the problems of no system-level thread switching overhead, large memory occupation, and many resources, so as to achieve small resource occupation, Preserve the effect of concurrency and facilitate maintenance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0024] The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention.
[0025] The present invention realizes a concurrent IO optimization scheme that satisfies high concurrency, good maintainability and scalability, and is suitable for scenarios such as low-end server environment applications, system-level software development, and storage development applications.
[0026] see figure 1 , the present invention mainly adopts the following architecture:
[0027] 1. The business code runs in the business layer in the form of Lua coroutine;
[0028] 2. The IO event loop (such as epoll) implemented in C (or other system-level programming language) runs in the core scheduling layer;
[0029] 3. The business layer registers IO operations to...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com