An Efficient Multithreaded Log Writing Method
A multi-threading and logging technology, applied in the field of computer programming, can solve problems such as blocking and competing for business threads, and achieve the effect of reducing frequency and overhead
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0018] Combine below Figure 1 to Figure 3 , the present invention is further described:
[0019] The invention provides an efficient multi-thread log writing method. The invention includes an interface for application programs, a front end for generating log information, and a back end responsible for writing log information into local files. The specific implementation of the method includes the following steps:
[0020] 1. Initialize the four front-end and back-end buffers and the full buffer queue to be written into the file, including the current buffer currentBuffer, the preliminary buffer nextBuffer, the free buffer newBuffer1, the free buffer newBuffer2 and the waiting buffer Queue buffers of filled buffers written to the file. The front end has the current buffer currentBuffer, the preparation buffer nextBuffer, and the buffer queue buffers that have been filled in the front end to be written to the file, and the back end has the free buffer newBuffer1, the free buf...
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