Method and device for dynamically adjusting sleep duration of information access task
The invention discloses a method and a device for dynamically adjusting sleep duration of an information access task. The method comprises the following steps: detecting whether a first shared storage area for storing information has an idle storage unit or not; according to a detection result, adju...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a method and a device for dynamically adjusting sleep duration of an information access task. The method comprises the following steps: detecting whether a first shared storage area for storing information has an idle storage unit or not; according to a detection result, adjusting a first continuous number of times that idle storage units exist and a second continuous number of times that no idle storage units exist, and adjusting sleep duration based on selected parameters of the first continuous number of times, the second continuous number of times, a set number of times, a minimum value and a maximum value; starting a timer based on the sleep duration; and if it is monitored that the timer expires, executing the step of detecting whether the first shared storage area for storing the information has an idle storage unit or not. According to the scheme, the sleep duration of the information access task can be dynamically adjusted.
本发明公开了一种信息存取任务的睡眠时长动态调整方法及装置,该方法包括:检测存放信息的第一共享存储区域是否有 |
---|