Method and device for multi-thread log entry
A recording method and recording device technology, applied in the field of business processing logic application system, capable of solving problems such as interleaving
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0020] The first embodiment provided by the present invention is a multi-thread log recording method, three threads (T1, T2 and T3) are processed simultaneously, and each thread corresponds to 3 key steps, corresponding to which each thread will generate 3 logs Record (blog1, blog2, blog3), the method flow is as follows figure 1 shown, including:
[0021] Step 102: Separately store the log content corresponding to the T1 thread in the storage space corresponding to the A address space in the memory.
[0022] Step 104: After the T1 thread finishes processing, write all the log contents stored in the storage space corresponding to the A address space to the 20080808.log log file together. At this time, the T1 thread generates three log records T1blog1, T1blog2, T1blog3, and It will be continuously recorded in the 20080808.log log file.
[0023] In step 104, after the logging module receives the request, it can immediately write the three log records T2blog1, T2blog2, and T2blo...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
