Multithreading file traversal technology
A multi-threading and traversal technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as performance degradation and impact on usability, and achieve the effect of performance improvement and expansion of application range
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0034] Embodiments of the present invention will be described in detail below.
[0035] A multi-thread file traversal technology adopts a configurable multi-thread mode and a cooperative traversal method of an opportunity queue, including two steps of starting traversal and working thread processing.
[0036] Start the traversal like this, as in figure 1 As shown, the flow starts at step 101, and the traversal starts.
[0037] Then enter step 102, start the working thread group, and start the number of working threads through configuration parameters, which can be adjusted according to the scale of the traversed object and the processing capacity of the running server, so as to achieve the best concurrent processing effect. After each thread of the thread group is started, it is idle and waiting for a task.
[0038] Then go to step 103 to deliver the initial task. The top-level directory of the file system is encapsulated as a task and delivered to the queue. As the starting...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 