Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for increasing multi-tasking efficiency through thread management

A technology of processing efficiency and thread management, applied in the direction of multi-programming devices, etc., can solve the problems of low development efficiency, reduce work efficiency, and thread management confusion, and achieve the effect of reducing development work, reducing expenses, and improving work efficiency

Active Publication Date: 2012-05-16
SHENZHEN CLOU ELECTRONICS
View PDF3 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In software system development, multithreading is often used to process different task events during the system development process. The creation of multiple threads leads to low utilization of system resources, chaotic thread management, and high coupling of thread processing, resulting in low development efficiency and occurrence of The problem is difficult to locate, and there are often inexplicable errors, and there is a certain degree of repetition in the thread development code, which reduces work efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for increasing multi-tasking efficiency through thread management
  • Method for increasing multi-tasking efficiency through thread management

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention will be further described below in conjunction with the accompanying drawings of the description.

[0026] A method for improving multi-tasking processing efficiency through thread management. In the task management system of the JAVA platform, the task object in the single thread is used to realize multi-thread operation. The specific method is as follows:

[0027] S101) Create a task scheduler; the task scheduler provides a standard task object registration interface and a task object processing interface;

[0028] S102) Create a task object; the task object inherits an abstract class from the task object, and its derived task object class must implement the DoCancel() function and the RunL() function. The DoCancel() function is used to cancel the asynchronous request, and the RunL() function is the task object The event processing function of the task object; firstly, set the priority of the task object to facilitate the processing order of the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention is suitable for the field of multi-task management of a JAVA platform. Multi-thread operation is realized by using a task object in a single thread, and through inheriting a task object base class, carrying out different-priority and call-back interface configuration on each task object, registering in a task scheduler thread and configuring the task objects, the tasking speed is increased. The multi-task management mode comprises the steps of: S101, creating a task scheduler; S102, creating the task objects, adding into the task scheduler for registering; S103, starting the task scheduler; S104, processing different task events by the task scheduler through an asynchronous function; S105, asynchronously processing the task events, informing the task objects of the processing result; and 106, initiating a cancelling request to the task scheduler by the task objects, and cancelling the task objects from the task scheduler.

Description

technical field [0001] The invention relates to the multitasking event processing field of the JAVA platform. Background technique [0002] A thread, sometimes called a Lightweight Process (LWP), is the smallest unit of program execution flow. A standard thread consists of thread ID, current instruction pointer (PC), register set and stack. In addition, a thread is an entity in a process, and it is the basic unit independently scheduled and dispatched by the system. The thread itself does not own system resources, but only a few resources that are necessary for running, but it can communicate with other threads belonging to the same process. Share all resources owned by the process. One thread can create and cancel another thread, and multiple threads in the same process can execute concurrently. Due to the mutual restriction between threads, the threads show discontinuity in operation. Threads also have three basic states: ready, blocked, and running. [0003] A thread...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/46
Inventor 张利
Owner SHENZHEN CLOU ELECTRONICS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products