Multi-thread finite state machine switching method and multi-thread finite state machine switching device based on thread pool
A technology of finite state machine and switching device, which is applied in multi-programming device, resource allocation and other directions, can solve the problems of unrealizable operation, insufficient single-thread power, complicated design, etc., and achieves rich role objects, smooth system operation, and higher utilization. rate effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0020] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings.
[0021] figure 1 It is a flow chart of the thread pool-based multi-thread finite state machine switching method of the present invention, including:
[0022] S101: Put the idle threads in the thread pool into the standby queue, and set the threads in the queue to be blocked;
[0023] S102: When the application program triggers a behavior task, select an idle thread from the waiting queue to unblock, import the behavior task into this thread, and obtain a task thread in a busy state;
[0024] S103: Put the task thread into a work queue, and execute tasks in the work queue.
[0025] In game development, an application often needs to create and destroy threads frequently, and the task execution time is often relatively short, so the overhead caused by thread creatio...
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