CN106502773A - There is data asynchronous processing method and the module of synchronous callback information function - Google Patents
There is data asynchronous processing method and the module of synchronous callback information function Download PDFInfo
- Publication number
- CN106502773A CN106502773A CN201610881104.7A CN201610881104A CN106502773A CN 106502773 A CN106502773 A CN 106502773A CN 201610881104 A CN201610881104 A CN 201610881104A CN 106502773 A CN106502773 A CN 106502773A
- Authority
- CN
- China
- Prior art keywords
- thread
- pool
- module
- data asynchronous
- process task
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000001360 synchronised effect Effects 0.000 title claims abstract description 24
- 238000003672 processing method Methods 0.000 title claims abstract description 10
- 238000000034 method Methods 0.000 claims abstract description 59
- 230000008569 process Effects 0.000 claims abstract description 49
- 230000002159 abnormal effect Effects 0.000 claims abstract description 24
- 230000004044 response Effects 0.000 claims description 10
- 238000005538 encapsulation Methods 0.000 claims 2
- 238000001514 detection method Methods 0.000 abstract description 5
- 230000008901 benefit Effects 0.000 description 4
- 206010008190 Cerebrovascular accident Diseases 0.000 description 2
- 208000006011 Stroke Diseases 0.000 description 2
- 230000005059 dormancy Effects 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000007958 sleep Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 208000011580 syndromic disease Diseases 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/329—Power saving characterised by the action undertaken by task scheduling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3017—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is implementing multitasking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The invention discloses a kind of data asynchronous processing method and module with synchronous callback information function, is related to asynchronous data process field.Steps of the method are:The thread pool pool of a specified maximum thread amount is created, is, after the thread of each data asynchronous process task adds priority, to add pool;When the thread in pool starts, the information that the corresponding data asynchronous process task of current thread starts to execute is returned;Timing is started according to the time-count cycle for pre-setting to current thread;Current thread is called to start working by pool, if current thread occurs exception in the course of the work, it is determined that and return stack information when occurring abnormal;Whether timing detection current thread completes.The present invention can control the operation quantity of multithreading, and whether timing detection thread is finished;The execution state of primary data asynchronous process task can not only be obtained, and the resource of occupancy CPU and the electric energy of consuming are less, ensure that the performance of system.
Description
Technical field
The present invention relates to asynchronous data process field, and in particular to a kind of data with synchronous callback information function are asynchronous
Processing method and module.
Background technology
Generally in the application development process of Android, the function of the commonly used asynchronous process data of meeting;Due to
UI (User Interface, the user interface) interface of Android is operated in main thread, if therefore some very take
If work is not processed using asynchronous system but is placed directly in main thread and processed, android system APP card can be caused
, the exception error of ANR (Application Not Responding, application program is without response) even occurs when serious.
At present, the method for the existing asynchronous process data based on Android is generally:Often a new task is opened just
A new thread can be opened, and (thread is a single sequential control flow process in program, is a relatively independent and schedulable
Performance element, simultaneously run multiple threads in single program and complete different work, referred to as multithreading), after the completion of task
Waiting system reclaims thread.But, when data asynchronous process task is more, opening and reclaim multithreading can reduce the property of system
Can, and said method cannot be fed back to the execution state of asynchronous task;As in exploitation, a lot of logics are all that needs are same
Step is processed, and therefore the execution state of feedback asynchronous task and process structure can become particularly important.
Content of the invention
For defect present in prior art, present invention solves the technical problem that being:The operation quantity of control multithreading,
Whether timing detection thread is finished.The present invention can not only clear primary data asynchronous process task execution state, and
And the resource of occupancy CPU and the electric energy of consuming are less, ensure that the performance of system, have very in synchronous applications scene
Obvious advantage.
For reaching object above, the data asynchronous processing method with synchronous callback information function that the present invention is provided, side
Method is comprised the following steps:
S1:The thread pool pool of a specified maximum thread amount is created, is the thread of each data asynchronous process task
After adding priority, pool is added, S2 is gone to;
S2:When the thread in pool starts, return the corresponding data asynchronous process task of current thread and start execution
Information;Timing is started according to the time-count cycle for pre-setting to current thread, S3 is gone to;
S3:Call current thread to start working by pool, judge current thread in the course of the work, if occur different
Often, if so, determine and return stack information when occurring abnormal;S4 is otherwise gone to;
S4:After the time-count cycle in S2, judge whether the corresponding data asynchronous process task of current thread completes, if
It is to return the information that the corresponding data asynchronous process task of current thread is completed;Otherwise after the latent period for pre-setting, weight
The new judgement step for executing S4.
The data asynchronous process module with synchronous callback information function for realizing said method that the present invention is provided, including
Callback interface, thread pool create submodule, thread and start response submodule, exception catching submodule and Thread executing state determination
Submodule;
Thread pool creates submodule to be used for:The thread pool pool of a specified maximum thread amount is created, is each data
After the thread of asynchronous process task adds priority, pool is added;
Thread starts response submodule and is used for:When the thread in pool starts, callback interface is called to return current thread
Corresponding data asynchronous process task starts the information for executing;Current thread was started to count according to the time-count cycle for pre-setting
When, timing is sent to Thread executing state determination sub-module after time-count cycle complete signal;
Exception catching submodule is used for:Judge whether the thread in pool occurs exception in the course of the work, if so, to line
Cheng Zhihang states determination sub-module sends abnormal signal;Otherwise Thread executing state is sent to Thread executing state determination sub-module
Determine signal;
Thread executing state determination sub-module is used for:
(1), when receiving timing and completing signal and abnormal signal, callback interface is called to determine and return heap when occurring abnormal
Stack information;
(2) receive timing and complete signal and when Thread executing state determines signal, judge that thread starts response submodule and opens
Whether the corresponding data asynchronous process task of dynamic thread completes, and if so, calls callback interface to return the corresponding number of current thread
According to the information that asynchronous process task is completed;Otherwise after the latent period for pre-setting, judgement workflow is re-started.
Compared with prior art, it is an advantage of the current invention that:
(1) with often open in prior art compared with a new task may turn on a new thread, the present invention is created
The thread pool pool (S1) of specified maximum thread amount;Pool can control the quantity of maximum instantiation thread, when extraneous Shen
Please quantity when exceeding default maximum thread, the thread that comes in after allowing first waits other threads to execute and completes, then dispatching this
Thread is executed.Therefore, pool is capable of the maximum cost of reasonable control system, effectively utilizes resource so as to reach, will not
The problem that opens up a lot of threads and waste system resource (if thread is infinitely opened up down, inevitably results in decorum operation and card occurs
Or serious conditions under occur crash etc.).
At the same time, compared with it cannot carry out feedback to the execution state of asynchronous task in prior art, the present invention is online
Cheng Qidong, occur abnormal and at the end of can return corresponding information, and then enable the external world clearly to learn that thread is correspondingly counted
According to the execution state of asynchronous process task, task abnormity situation is processed immediately.Therefore, the present invention is in synchronous applications scene
In there is obviously advantage.
(2) by the method for timing detection (latent period arranged in S4), the present invention determines whether thread works and completes,
As continuous quick search can take cpu resource and can expend more electric energy, if therefore adjacent setting between inquiry twice is closed
Long latent period, can not only ensure the execution state for obtaining thread, and take the resource of CPU and the electric energy for expending in good time
Less.
(3) data asynchronous process module of the invention using singleton pattern (class one and only one example, and from
Row instantiation is provided to whole system), the maximum advantage of singleton pattern is all to retain a example in any position of program,
And any position can quickly have access to this singleton;Therefore, the present invention can significantly reduce developer in use and obtain
The difficulty for the treatment of excess syndrome example, and then significantly improve work efficiency.
Description of the drawings
Fig. 1 is the flow chart of the data asynchronous processing method in the embodiment of the present invention with synchronous callback information function.
Specific embodiment
The present invention is described in further detail below in conjunction with drawings and Examples.
Data asynchronous processing method with synchronous callback information function shown in Figure 1, in the embodiment of the present invention, bag
Include following steps:
S1:The thread pool pool of a specified maximum thread amount is created, is the thread of each data asynchronous process task
After adding priority, pool is added, S2 is gone to.
Thread pool:I.e. multiple threads form, in processing procedure adds mission thread to queue, is then creating line
These tasks of automatic after journey;Thread pool threads are all background threads.Storehouse size of each thread using acquiescence, with silent
The priority operation that recognizes, and in multiple thread units.
S2:When the thread in pool starts, inform that the corresponding data asynchronous process task of extraneous current thread starts to hold
Capable information simultaneously passes through 1 dormancy function Thread.sleep (50), and current thread was opened according to the time-count cycle for pre-setting
Beginning timing, goes to S3.
S3:Call current thread to start working by pool and (process the corresponding data asynchronous process task of current thread
Start to execute), judge current thread in the course of the work, if exception occurs, when if so, determining and inform that extraneous generation is abnormal
Stack information, terminate, otherwise after the time-count cycle in S2, go to S4.
The idiographic flow for determining and informing extraneous stack information when occurring abnormal in S3 is:Using try-catch codes
Code in block, stack information when determining that current thread occurs abnormal are simultaneously encapsulated to Exception apoplexy due to endogenous wind;Parsing
After the stack information of Exception apoplexy due to endogenous wind, stack information is notified to caller by way of interface.
S4:Judge whether the corresponding data asynchronous process task of current thread completes, if so, inform extraneous current thread pair
The information that the data asynchronous process task that answers is completed, terminates;Otherwise pre-set latent period (50~200 milliseconds, this reality
Apply in example is 50 milliseconds, generally 100 milliseconds) after, re-execute S4.
The data asynchronous process module with synchronous callback information function for realizing said method in the embodiment of the present invention,
The module is singleton pattern, and singleton pattern concrete implementation flow process is:
private static volatile TaskHandler instance;
The example of // statement singleton
public static TaskHandler getInstance(){
// globally unique the function for obtaining singleton
If (instance==null)
// judge whether the example is empty
synchronized(TaskHandler.class){
// synchronized code block
If (instance==null)
// dual determine whether sky
Instance=new TaskHandler ();
// pass through new key instance classes }
return instance;
// instance objects are returned
Above-mentioned realize in flow process, it is contemplated that the problem of multithreading, so having added synchronized when initialized
Keyword, synchronized keywords represent the synchronous meaning, show the part bracketed by synchronized, it is impossible to many
Threading operation, synchronization can only a thread operated.The use of this synchronization mechanism, can effectively avoid production many
Individual singleton example is out;The empty logic of dual judgement is simultaneously used, multithreading can be effectively avoided and caused multiple realities
The generation of example.
On this basis, the module includes that callback interface, thread pool create submodule, thread and start response submodule, different
Submodule and Thread executing state determination sub-module are often captured.
The Interface design flow process of callback interface is:
Thread pool creates submodule to be used for:The thread pool pool of a specified maximum thread amount is created, is each data
After the thread of asynchronous process task adds priority, pool is added.
Thread starts response submodule and is used for:When the thread in pool starts, the onStart letters in callback interface are called
Number, informs that the corresponding data asynchronous process task of extraneous current thread starts the information for executing;Pass through 1 dormancy function simultaneously
Thread.sleep (50), starts timing to current thread according to the time-count cycle for pre-setting, to thread after time-count cycle
Execution state determination sub-module sends timing and completes signal.
Exception catching submodule is used for:Judge whether the thread in pool occurs exception in the course of the work, if so, to line
Cheng Zhihang states determination sub-module sends abnormal signal;Otherwise Thread executing state is sent to Thread executing state determination sub-module
Determine signal.
Thread executing state determination sub-module is used for:
(1), when receiving timing and completing signal and abnormal signal, the onError functions in callback interface are called to inform extraneous sending out
Raw abnormal, stack information of exception catching submodule detection when occurring abnormal is encapsulated to errorMsg that (errorMsg is
Character string), the external world can obtain detailed failure cause by errorMsg.
(2) receive timing and complete signal and when Thread executing state determines signal, judge that thread starts response submodule and opens
Whether the corresponding data asynchronous process task of dynamic thread completes, and if so, calls the onSuccess functions in callback interface, accuses
Know the information that the corresponding data asynchronous process task of extraneous current thread is completed;Otherwise after the latent period for pre-setting, weight
Judgement workflow is newly carried out.
The present invention is not limited to above-mentioned embodiment, for those skilled in the art, without departing from
On the premise of the principle of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as the protection of the present invention
Within the scope of.The content not being described in detail in this specification belongs to prior art known to professional and technical personnel in the field.
Claims (7)
1. a kind of data asynchronous processing method with synchronous callback information function, it is characterised in that the method includes following step
Suddenly:
S1:The thread pool pool of a specified maximum thread amount is created, is that the thread of each data asynchronous process task adds
After priority, pool is added, S2 is gone to;
S2:When the thread in pool starts, the information that the corresponding data asynchronous process task of current thread starts to execute is returned;
Timing is started according to the time-count cycle for pre-setting to current thread, S3 is gone to;
S3:Call current thread to start working by pool, judge current thread in the course of the work, if exception occurs, if
It is to determine and return stack information when occurring abnormal;S4 is otherwise gone to;
S4:After the time-count cycle in S2, judge whether the corresponding data asynchronous process task of current thread completes, if so,
Return the information that the corresponding data asynchronous process task of current thread is completed;Otherwise after the latent period for pre-setting, again
Execute the judgement step of S4.
2. there is the data asynchronous processing method of synchronous callback information function as claimed in claim 1, it is characterised in that:In S3
The determination simultaneously returns the idiographic flow of stack information when occurring abnormal and is:Storehouse letter when determining that current thread occurs abnormal
Breath is simultaneously packaged as abnormal document;Return the abnormal document after encapsulation.
3. there is the data asynchronous processing method of synchronous callback information function as claimed in claim 1 or 2, it is characterised in that:
Latent period described in S4 is 50~200 milliseconds.
4. the asynchronous place of a kind of data with synchronous callback information function that realizes such as claims 1 to 3 any one methods described
Reason module, it is characterised in that:The module includes that callback interface, thread pool create submodule, thread and start response submodule, exception
Capture submodule and Thread executing state determination sub-module;
Thread pool creates submodule to be used for:The thread pool pool of a specified maximum thread amount is created, is that each data is asynchronous
After the thread of process task adds priority, pool is added;
Thread starts response submodule and is used for:When the thread in pool starts, callback interface is called to return current thread corresponding
Data asynchronous process task start execute information;Timing is started according to the time-count cycle for pre-setting to current thread, is counted
When the cycle after to Thread executing state determination sub-module send timing complete signal;
Exception catching submodule is used for:Judge whether the thread in pool occurs exception in the course of the work, if so, hold to thread
Row state determination sub-module sends abnormal signal;Otherwise send Thread executing state to Thread executing state determination sub-module to determine
Signal;
Thread executing state determination sub-module is used for:
(1), when receiving timing and completing signal and abnormal signal, callback interface is called to determine and return storehouse letter when occurring abnormal
Breath;
(2) receive timing and complete signal and when Thread executing state determines signal, judge that thread starts what response submodule started
Whether the corresponding data asynchronous process task of thread completes, and if so, calls callback interface to return the corresponding data of current thread different
The information that step process task is completed;Otherwise after the latent period for pre-setting, judgement workflow is re-started.
5. there is the data asynchronous process module of synchronous callback information function as claimed in claim 4, it is characterised in that:Described
Data asynchronous process module is singleton pattern.
6. there is the data asynchronous process module of synchronous callback information function as claimed in claim 4, it is characterised in that:Described
Thread executing state determination sub-module receives specific workflow when timing completes signal and abnormal signal:Readjustment is called to connect
Mouthful, stack messages when exception will occur are packaged as abnormal document, the abnormal document after return encapsulation.
7. the data asynchronous process module with synchronous callback information function as described in any one of claim 4 to 6, its feature
It is:The latent period that the Thread executing state determination sub-module pre-sets is 50~200 milliseconds.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610881104.7A CN106502773B (en) | 2016-10-09 | 2016-10-09 | Data asynchronous processing method and module with synchronous callback information function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610881104.7A CN106502773B (en) | 2016-10-09 | 2016-10-09 | Data asynchronous processing method and module with synchronous callback information function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106502773A true CN106502773A (en) | 2017-03-15 |
CN106502773B CN106502773B (en) | 2019-12-03 |
Family
ID=58294699
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610881104.7A Active CN106502773B (en) | 2016-10-09 | 2016-10-09 | Data asynchronous processing method and module with synchronous callback information function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106502773B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108804206A (en) * | 2017-04-26 | 2018-11-13 | 武汉斗鱼网络科技有限公司 | The processing method and system of synchronous task |
CN109144232A (en) * | 2018-08-01 | 2019-01-04 | Oppo广东移动通信有限公司 | Process handling method and device, electronic equipment, computer readable storage medium |
CN109254834A (en) * | 2017-07-13 | 2019-01-22 | 普天信息技术有限公司 | A kind of multithreading starting synchronous method |
CN109408251A (en) * | 2018-09-28 | 2019-03-01 | 北京龙拳风暴科技有限公司 | Message method and device, message sink processing method and device |
CN109542719A (en) * | 2018-10-26 | 2019-03-29 | 金蝶软件(中国)有限公司 | Thread state monitoring method and device, computer equipment and storage medium |
CN112463331A (en) * | 2020-12-02 | 2021-03-09 | 天津光电通信技术有限公司 | Task scheduling optimization implementation method based on JAVA single thread pool |
WO2024037553A1 (en) * | 2022-08-16 | 2024-02-22 | 华为技术有限公司 | Lifecycle scheduling method and apparatus, and electronic device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102262564A (en) * | 2011-08-16 | 2011-11-30 | 天津市天祥世联网络科技有限公司 | Thread pool structure of video monitoring platform system and realizing method |
CN102323894A (en) * | 2011-09-08 | 2012-01-18 | 上海普元信息技术股份有限公司 | System and method for realizing non-blockage mutual calling in distributed application of enterprise |
CN102541653A (en) * | 2010-12-24 | 2012-07-04 | 新奥特(北京)视频技术有限公司 | Method and system for scheduling multitasking thread pools |
CN102591721A (en) * | 2011-12-30 | 2012-07-18 | 北京新媒传信科技有限公司 | Method and system for distributing thread execution task |
CN104063279A (en) * | 2013-03-20 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Task scheduling method and device and terminal |
CN104142865A (en) * | 2014-07-18 | 2014-11-12 | 国家电网公司 | Data collecting and processing method based on thread synchronization |
-
2016
- 2016-10-09 CN CN201610881104.7A patent/CN106502773B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102541653A (en) * | 2010-12-24 | 2012-07-04 | 新奥特(北京)视频技术有限公司 | Method and system for scheduling multitasking thread pools |
CN102262564A (en) * | 2011-08-16 | 2011-11-30 | 天津市天祥世联网络科技有限公司 | Thread pool structure of video monitoring platform system and realizing method |
CN102323894A (en) * | 2011-09-08 | 2012-01-18 | 上海普元信息技术股份有限公司 | System and method for realizing non-blockage mutual calling in distributed application of enterprise |
CN102591721A (en) * | 2011-12-30 | 2012-07-18 | 北京新媒传信科技有限公司 | Method and system for distributing thread execution task |
CN104063279A (en) * | 2013-03-20 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Task scheduling method and device and terminal |
CN104142865A (en) * | 2014-07-18 | 2014-11-12 | 国家电网公司 | Data collecting and processing method based on thread synchronization |
Non-Patent Citations (4)
Title |
---|
HEKUILOVE: "Java之异步回调", 《HTTPS://QUINNHE.ITEYE.COM/BLOG/2192940》 * |
JYNINE: "Java之可回调的固定线程池", 《HTTPS://JYNINE.ITEYE.COM/BLOG/1987858》 * |
YUANYL: "android应用程序中对于ANR主线程超时不响应导致强制关闭的解决方案", 《HTTPS://BLOG.CSDN.NET/YUANYL/ARTICLE/DETAILS/50855934》 * |
跌跌撞撞的小时代: "java线程池中任务执行完成后再次执行", 《HTTPS://BLOG.CSDN.NET/YANGXIAOVIP/ARTICLE/DETAILS/47144643》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108804206A (en) * | 2017-04-26 | 2018-11-13 | 武汉斗鱼网络科技有限公司 | The processing method and system of synchronous task |
CN109254834A (en) * | 2017-07-13 | 2019-01-22 | 普天信息技术有限公司 | A kind of multithreading starting synchronous method |
CN109254834B (en) * | 2017-07-13 | 2021-05-14 | 普天信息技术有限公司 | Multithreading starting synchronization method |
CN109144232A (en) * | 2018-08-01 | 2019-01-04 | Oppo广东移动通信有限公司 | Process handling method and device, electronic equipment, computer readable storage medium |
CN109408251A (en) * | 2018-09-28 | 2019-03-01 | 北京龙拳风暴科技有限公司 | Message method and device, message sink processing method and device |
CN109408251B (en) * | 2018-09-28 | 2020-11-03 | 北京龙拳风暴科技有限公司 | Message sending method and device and message receiving processing method and device |
CN109542719A (en) * | 2018-10-26 | 2019-03-29 | 金蝶软件(中国)有限公司 | Thread state monitoring method and device, computer equipment and storage medium |
CN109542719B (en) * | 2018-10-26 | 2022-05-13 | 金蝶软件(中国)有限公司 | Thread state monitoring method and device, computer equipment and storage medium |
CN112463331A (en) * | 2020-12-02 | 2021-03-09 | 天津光电通信技术有限公司 | Task scheduling optimization implementation method based on JAVA single thread pool |
CN112463331B (en) * | 2020-12-02 | 2022-04-15 | 天津光电通信技术有限公司 | Task scheduling optimization implementation method based on JAVA single thread pool |
WO2024037553A1 (en) * | 2022-08-16 | 2024-02-22 | 华为技术有限公司 | Lifecycle scheduling method and apparatus, and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN106502773B (en) | 2019-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106502773A (en) | There is data asynchronous processing method and the module of synchronous callback information function | |
CN107431696B (en) | Method and cloud management node for application automation deployment | |
CN107479981B (en) | Processing method and device for realizing synchronous call based on asynchronous call | |
CN103885826B (en) | Real-time task scheduling implementation method of multi-core embedded system | |
CN108446199A (en) | A kind of detection method and device using interim card | |
CN109783255B (en) | Data analysis and distribution device and high-concurrency data processing method | |
CN110765288B (en) | Image information synchronization method, device and system and storage medium | |
CN112379993A (en) | Robot process automation processing system, method and device | |
US20180253313A1 (en) | Operation instruction response control method and terminal for human-machine interface | |
CN115454629A (en) | AI algorithm and micro-service scheduling method and device based on cloud native technology | |
CN114880159A (en) | Data processing method, device, equipment and storage medium | |
CN108196950A (en) | A kind of real time implementation operating system and its method applied to narrowband Internet of Things | |
CN110990132A (en) | Asynchronous task processing method and device, computer equipment and storage medium | |
CN113190427A (en) | Caton monitoring method and device, electronic equipment and storage medium | |
CN109002286A (en) | Data asynchronous processing method and device based on synchronous programming | |
CN101349975B (en) | Method for implementing interrupt bottom semi-section mechanism in embedded operation system | |
CN105468407A (en) | Method for automatic discovery and sequential running of startup classes | |
WO2020073200A1 (en) | Program debugging method and system | |
CN101976206A (en) | Interrupt handling method and device | |
CN112612604B (en) | Task scheduling method and device based on Actor model | |
WO2021078271A1 (en) | Method and device for accelerating image detection, and storage medium | |
CN108989244A (en) | Data processing method, device, storage medium and electronic equipment | |
CN105808585B (en) | Method and device for processing streaming data | |
WO2018040271A1 (en) | Thread processor and thread processing method | |
CN103294874A (en) | Web service packaging method and system for FEKO of electromagnetic simulation computing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231111 Address after: Room 606-609, Compound Office Complex Building, No. 757, Dongfeng East Road, Yuexiu District, Guangzhou, Guangdong Province, 510699 Patentee after: China Southern Power Grid Internet Service Co.,Ltd. Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |