Thread wakening control systems and method

A control method and technology for a control system, applied in the computer field, can solve problems such as waste of system resources and unreasonableness, and achieve the effects of solving efficiency and waste of system resources, long sleep time, and rational use

Active Publication Date: 2008-02-13
KINGDEE SOFTWARE(CHINA) CO LTD
View PDF0 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Especially when the system is more concerned about performance, or the service thread consumes more resources, this method of scheduling service threads at fixed intervals is unreasonable and wastes a lot of system resources

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
  • Thread wakening control systems and method
  • Thread wakening control systems and method
  • Thread wakening control systems and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] The application environment of the scheme of the present invention may be in a java middleware application server, or in other application server environments, such as a web server. In a word, the technical solutions described in the present invention can be applied in scenarios where service threads need to be invoked, and the present invention does not limit the application environment of the technical solutions.

[0053] The service thread of the present invention can be a message sending, mail sending, dynamic processing and handing in documents or other service threads, for some underlying service threads, no matter it is a service thread in a web server or a middleware application server and other types of servers , if the following conditions are met, the technical solutions of the present invention can be preferably applied:

[0054] 1. It will consume system resources during execution, and it is necessary to wake up / sleep threads reasonably to save system resou...

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 present invention provides a line wakeup control method, including the following steps: the tread wakes up and runs to check whether there are armed tasks or not. If there are, the armed tasks are implemented and the line dormancy time is reset as Delta t of the preset minimal unit time interval. Otherwise, the sum Delta at of the latest two dormancy time intervals is computed and set as line dormancy time interval . The present invention achieves a short service line dormancy interval when there are a plurality of armed tasks and a long interval when armed tasks are few, avoid wasting the system resources and reasonably solving the contradiction between task processing efficiency and system resource waste.

Description

technical field [0001] The invention relates to the field of computers, in particular to a thread wake-up control method and system. Background technique [0002] A thread is an entity in a process, and it is the basic unit independently scheduled and dispatched by the system. A thread itself does not own system resources, but only some resources that are essential for running, but it can share the process with other threads belonging to the same process. All resources owned. A 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. A thread has three basic states: ready, blocked, and running. A thread is a single sequential flow of control in a program, which is a good solution to the parallel processing behavior on a tightly coupled shared main memory multiprocessor architecture. Thread dormancy means that the thread is in ...

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/48G06F9/50
Inventor 钟发然
Owner KINGDEE SOFTWARE(CHINA) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products