A task execution method and device
A task execution and task technology, applied in the computer field, can solve problems such as low efficiency and untimely processing
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] Embodiment 1 of the present invention provides a task execution method, please refer to figure 1 , the method includes:
[0053] S101. Add a protection parameter to the task queue function, and set the state of the target task of the first thread through the protection parameter, and the state of the target task includes a protected state and an unprotected state.
[0054] In the Windows operating system, each thread has its own APC (Asynchronous Procedure Call, asynchronous procedure call) queue, and any other thread can call the queuing function QueueUserAPC to deliver a task to the thread. Among them, the function of the queuing function QueueUserAPC is to add an APC object to the APC queue of the specified thread; if the thread is in the wakeable state, then the thread will execute all the tasks in the APC queue, and the first thread will deliver the target task to In the method executed in the second thread, the task queue function QueueTaskUntilComplete is used t...
Embodiment 2
[0090] Embodiment 2 of the present invention provides a task execution device, please refer to figure 2 , the device includes:
[0091] The first setting unit 201 is configured to add a protection parameter in the task queue function, and set the state of the target task of the first thread through the protection parameter, and the state of the target task includes a protection state and an unprotected state;
[0092] The second setting unit 202 is configured to set the state of the second thread through the protected thread function, the state of the second thread includes a protected state and an unprotected state;
[0093] The creating unit 203 is configured to create an asynchronous call parameter structure object, and the asynchronous call parameter structure object includes a task member, a protection field and a callback field, wherein the target task is assigned to the task member, and the protection parameter is assigned a value For the protection field, assign a ca...
Embodiment 3
[0101] Based on the same inventive concept, this embodiment provides a computer device 300, such as image 3 As shown, it includes a memory 310, a processor 320, and a computer program 311 stored on the memory 310 and operable on the processor 320. When the processor 320 executes the computer program 311, all the steps of the first embodiment above can be realized. Therefore, in This will not be repeated here.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



