CN110275816B - Progress bar display control method and device and computer readable storage medium - Google Patents

Progress bar display control method and device and computer readable storage medium Download PDF

Info

Publication number
CN110275816B
CN110275816B CN201810214564.3A CN201810214564A CN110275816B CN 110275816 B CN110275816 B CN 110275816B CN 201810214564 A CN201810214564 A CN 201810214564A CN 110275816 B CN110275816 B CN 110275816B
Authority
CN
China
Prior art keywords
progress
updating
progress bar
frequency
module
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.)
Active
Application number
CN201810214564.3A
Other languages
Chinese (zh)
Other versions
CN110275816A (en
Inventor
李明占
梁小刚
陆路
张小小
冀怀远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SuningCom Co ltd
Original Assignee
SuningCom Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by SuningCom Co ltd filed Critical SuningCom Co ltd
Priority to CN201810214564.3A priority Critical patent/CN110275816B/en
Publication of CN110275816A publication Critical patent/CN110275816A/en
Application granted granted Critical
Publication of CN110275816B publication Critical patent/CN110275816B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3017Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is implementing multitasking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/328Computer systems status display

Abstract

The invention discloses a progress bar display control method and device and a computer readable storage medium, and belongs to the technical field of display control. The method comprises the following steps: s1, when starting instructions of a plurality of execution threads are obtained, updating and displaying progress bars corresponding to the plurality of execution threads by adopting a first updating parameter, and monitoring completion information of the plurality of execution threads; s2, if the completion information is monitored before or when the progress of the progress bar reaches the first progress threshold, executing S4, and if the completion information is not monitored when the progress of the progress bar reaches the first progress threshold, executing S3; s3, stopping updating the progress bar until the completion information is monitored, and executing the step S4; and S4, updating the display progress bar by adopting a second updating parameter different from the first updating parameter until the end. According to the method and the device, the virtual progress bar is used for simulating the overall execution progress of the multiple execution threads, so that the development speed of the progress bar can be increased, the development risk can be reduced, and the user experience can be improved.

Description

Progress bar display control method and device and computer readable storage medium
Technical Field
The invention relates to the technical field of display control, in particular to a progress bar display control method and device and a computer readable storage medium.
Background
And the multithread downloading means that a plurality of threads are opened to request to download one or more files, each thread is responsible for downloading partial contents of the specified file, and when all threads finish downloading, the whole contents of the file are downloaded. Wherein the progress of the multi-threaded download can be dynamically displayed to the user by using a progress bar.
For the multithread downloading progress display, the existing progress bar usually calculates the proportion of the downloading amount in the total downloading amount in real time, and updates and displays the downloading progress according to the proportion.
However, this design of the progress bar has the following problems:
due to the fact that the multithread downloading implementation process is complex, thread synchronization and thread locking are involved, in order to enable the progress bar to achieve real-time display of the multithread downloading progress, the downloading progress and display among different threads need to be controlled in real time, and therefore the progress bar is low in development efficiency and high in development risk.
Disclosure of Invention
The invention mainly aims to provide a progress bar display control method, a progress bar display control device and a computer readable storage medium, and aims to solve the technical problems that in the prior art, in order to enable a progress bar to realize real-time display of a multi-thread downloading progress, the downloading progress and display among different threads need to be controlled in real time, and further the development efficiency of the progress bar is low and the development risk is high.
The embodiment of the invention provides the following specific technical scheme:
in a first aspect, the present invention provides a method for controlling display of a progress bar, the method comprising the steps of:
s1, when starting instructions of a plurality of execution threads are obtained, updating and displaying progress bars corresponding to the plurality of execution threads by adopting a first updating parameter, and monitoring completion information of the plurality of execution threads;
s2, if the completion information is monitored before or when the progress of the progress bar reaches a first progress threshold, executing S4, and if the completion information is not monitored when the progress of the progress bar reaches the first progress threshold, executing S3;
s3, stopping updating the progress bar until the completion information is monitored, and executing the step S4;
and S4, updating and displaying the progress bar by adopting a second updating parameter different from the first updating parameter until the process is finished.
In some embodiments, in step S1, the updating, with the first update parameter, the progress bar corresponding to the plurality of execution threads includes:
updating and displaying the progress bar by adopting the first updating parameter determined by the first frequency and the first step;
wherein the first frequency is set to be related to a display screen refreshing frequency, and the first step is the progress of each update of the progress bar at the first frequency.
In some embodiments, the first stride is a non-uniform rate of progress.
In some embodiments, in step S4, said updating the display of the progress bar with a second update parameter different from the first update parameter until the end includes:
updating and displaying the progress bar by using the second updating parameter determined by the second frequency and the second step;
wherein the second frequency is set in relation to the display screen refresh frequency and the second frequency is greater than the first frequency;
the second stride is the progress of each update of the progress bar at the second frequency.
In some embodiments, the second stride is a constant rate of progress or a non-constant rate of progress.
In some embodiments, the second frequency is equal to N times the first frequency, N being an integer greater than or equal to 10.
In some embodiments, the first progress threshold is close to 100%.
In some embodiments, in the process of updating and displaying the progress bars corresponding to the multiple execution threads by using the first update parameter in step S1, the method further includes:
when the progress of the progress bar reaches a second progress threshold, if the fact that the multiple execution threads are not executed to a preset stage is monitored, adjusting the first updating parameters;
wherein the second progress threshold is less than the first progress threshold.
In a second aspect, the present invention provides a progress bar display control device, which includes a first updating module, a monitoring module, a triggering module, an update stopping module, and a second updating module; wherein, the first and the second end of the pipe are connected with each other,
the first updating module is used for updating and displaying the progress bars corresponding to the multiple execution threads by adopting a first updating parameter when starting instructions of the multiple execution threads are obtained;
the monitoring module is used for monitoring the completion information of the multiple execution threads;
the triggering module is configured to trigger the second updating module if the completion information is monitored before or when the progress of the progress bar reaches a first progress threshold, and trigger the update stopping module if the completion information is not monitored when the progress of the progress bar reaches the first progress threshold;
the update stopping module is used for stopping updating and displaying the progress bar until the monitoring module monitors the completion information, and executing the second update module;
and the second updating module is used for updating and displaying the progress bar by adopting a second updating parameter different from the first updating parameter until the end.
In some embodiments, the first update module is specifically configured to:
updating and displaying the progress bar by using the first updating parameter determined by the first frequency and the first step;
wherein the first frequency is set to be related to a display screen refreshing frequency, and the first step is the progress of each update of the progress bar at the first frequency.
In some embodiments, the first stride is a non-uniform rate of progress.
In some embodiments, the second update module is specifically configured to:
updating and displaying the progress bar by using the second updating parameter determined by the second frequency and the second step;
wherein the second frequency is set in relation to the display screen refresh frequency and the second frequency is greater than the first frequency;
the second stride is the progress of each update of the progress bar at the second frequency.
In some embodiments, the second stride is a constant rate of progress or a non-constant rate of progress.
In some embodiments, the second frequency is equal to N times the first frequency, N being an integer greater than or equal to 10.
In some embodiments, the first progress threshold is close to 100%.
In some embodiments, the apparatus further comprises an adjustment module;
the adjusting module is configured to adjust the first update parameter if it is monitored that the multiple execution threads are not executed to a preset stage when the progress of the progress bar reaches a second progress threshold;
wherein the second progress threshold is less than the first progress threshold.
In a third aspect, there is provided a progress bar display control apparatus, the apparatus comprising:
one or more processors;
a memory;
the program stored in the memory, when executed by the one or more processors, causes the processors to perform the steps of the progress bar display control method according to any one of the above first aspects.
In a fourth aspect, there is provided a computer-readable storage medium storing a program which, when executed by a processor, causes the processor to execute the steps of the progress bar display control method according to any one of the above first aspects.
The invention provides a progress bar display control method, a progress bar display control device and a computer readable storage medium.A whole progress bar is divided into two stages, the progress bars corresponding to a plurality of execution threads are updated and displayed by adopting a first updating parameter in the first stage, the completion information of the plurality of execution threads is monitored at the same time, and the updating process of the progress bar in the first stage is controlled according to whether the completion information of the plurality of execution threads is monitored in the first stage, so that the completion information of the plurality of execution threads can be ensured to be monitored in the first stage; in addition, after the completion information is monitored, the display progress bar is updated by adopting a second updating parameter in the second stage until the completion, and the completion results of the multiple execution threads can be displayed in the second stage; therefore, compared with the prior art, the method and the device have the advantages that the virtual progress bar is used for displaying the overall execution progress of the multiple execution threads, the actual execution progress of the multiple execution threads is ignored, the implementation mode of the display control of the progress bar can be greatly simplified, the development speed of the progress bar can be increased, and the development risk of the progress bar is reduced; in addition, the overall progress of the progress bar is smooth, so that the situation that the user cancels the execution of the executed object due to long-time jamming of the progress bar can be avoided, and the user experience is further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a progress bar display control method according to an embodiment of the present invention;
fig. 2 is a diagram illustrating a display effect of a progress bar according to an embodiment of the present invention;
fig. 3 is a block diagram of a progress bar display control apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a progress bar display control method, which ignores the problems of downloading actual progress by a plurality of execution threads and synchronization and locking among the threads in the progress bar progress display control process, only concerns the integral execution completion result of an executed object, simulates the actual execution progress by using a virtual progress, can effectively improve the development speed of the progress bar, reduces the development risk of the progress bar and improves the user experience.
It is to be understood that the multiple threads of execution in the embodiments of the present invention are used to execute an object, where the executed object includes, but is not limited to, one or more of file downloading, file uploading, file processing, browser web loading, video file loading, data transmission, and application installation.
It is further understood that the method provided by the embodiment of the present invention may be applied to a terminal having a display screen and supporting a progress bar display, including but not limited to desktop computers, personal computers, smart phones, tablet computers, e-book readers, and the like.
In addition, it should be noted that the terms "first", "second", etc. in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Referring to fig. 1, an embodiment of the present invention provides a method for controlling display of a progress bar, where the method includes:
s1, when starting instructions of a plurality of execution threads are obtained, a progress bar corresponding to the plurality of execution threads is updated and displayed by adopting a first updating parameter, and finishing information of the plurality of execution threads is monitored.
Specifically, when the terminal detects a preset operation for the object to be started, the terminal triggers a start instruction for executing a plurality of execution threads of the object, and displays progress bars corresponding to the plurality of execution threads according to a preset position of the start instruction on the user interface.
For example, when the object executed by the multiple execution threads is file downloading, a user interface for file downloading is started first, and if an operation that a user clicks a download confirmation button on the user interface is detected, the multiple execution threads for file downloading are triggered, and corresponding progress bars are displayed on the user interface.
The updating and displaying the progress bars corresponding to the multiple execution threads by using the first update parameter may include:
and updating the display progress bar by using a first updating parameter determined by the first frequency and the first step.
Wherein the first frequency is set in relation to the display screen refresh frequency.
In the specific implementation process, the display screen refreshing frequency can be obtained by detecting the current refreshing rate used by the display screen and the display screen refreshing frequency f is utilized 0 The first frequency f 1 The method comprises the following steps: the display screen is refreshed N times, the progress bar is refreshed once, i.e. f 1 =f 0 /N,N≥10。
The first stride is a progress of each update of the progress bar at the first frequency, and in this embodiment, the first stride is represented by a percentage. For example, the first step size is set to 1%, which means that the progress of each update at the first frequency is 1%.
Wherein, the first stride can be set as a non-uniform speed progress. In a specific implementation process, the first step may be set to be a random progress, for example, the range of the random progress is set to be 1% to 5%, and the first step is not specifically limited in the embodiment of the present invention.
In the embodiment of the invention, when the starting instructions of the multiple execution threads are obtained, the progress bars corresponding to the multiple execution threads are updated and displayed by adopting the first updating parameters, so that the updated and displayed progress bars can simulate the execution progress of the multiple execution threads without considering the real-time execution progress of the multiple execution threads, the development speed of the progress bars can be increased, and the development risk of the progress bars can be reduced; in addition, the progress of the progress bar is updated by adopting the first updating parameter, meanwhile, the first frequency in the first updating parameter is controlled by the refreshing frequency of the display screen, and the first step in the first updating parameter is non-uniform progress, so that the progress bar can be ensured not to generate a pause phenomenon in the advancing process, the progress bar can be updated and displayed more smoothly, meanwhile, the progress of the virtual progress bar can simulate the execution progress of a plurality of execution threads more vividly, and the user experience can be improved.
And S2, if the completion information is monitored before or when the progress of the progress bar reaches the first progress threshold, executing the step S4, and if the completion information is not monitored when the progress of the progress bar reaches the first progress threshold, executing the step S3.
Because the progress bar is updated and displayed by the first update parameter and is not completely corresponding to the actual execution progress of each execution thread in the multiple execution threads, the completion information of the multiple execution threads needs to be monitored to avoid the situation that the multiple execution progresses are not completed and the progress bar advances to the end point. In order to make the progress bar updated and displayed by using the first update parameter smoother and smoother as a whole, in a specific implementation process, the first progress threshold may be set to be close to 100%, for example, the first progress threshold is set to be 98%, and the specific first progress threshold is not limited in the embodiment of the present invention.
As to whether the completion information of the multiple execution threads is monitored when the progress of the progress bar reaches the first progress threshold, the following three types may be obtained as a result, and of course, in the specific implementation process, the following three types are not limited:
firstly, before the progress of the progress bar reaches a progress threshold, finishing information of a plurality of execution threads is monitored;
secondly, when the progress of the progress bar reaches a progress threshold, finishing information of a plurality of execution threads is monitored;
thirdly, when the progress of the progress bar reaches the progress threshold, the completion information of the multiple execution threads is not monitored.
In the embodiment of the present invention, when the progress bar reaches the first progress threshold, different results of whether the completion information of the multiple execution threads is monitored need to be processed respectively, so that the multiple execution threads can be ensured to complete execution in the progress bar.
And S3, stopping updating the progress bar until the completion information is monitored, and executing the step S4.
In the embodiment of the invention, because the completion information is not monitored when the progress of the progress bar reaches the first progress threshold, and the remaining progress of the progress bar is shorter at the moment, in order to ensure that a plurality of execution threads complete execution in the advancing process of the progress bar, the progress bar needs to be controlled to notify and update until the completion information is monitored. In addition, when the progress of the progress bar reaches the first progress threshold, the completed progress of the progress bar is long, and the user has high confidence in completing the execution of the executed object, so that even if the progress bar is stopped to be updated at the moment, the user cannot directly cancel the execution task.
And S4, updating the display progress bar by adopting a second updating parameter different from the first updating parameter until the end.
Specifically, the updating the display progress bar by using a second update parameter different from the first update parameter until the end may include:
and updating the display progress bar by using a second updating parameter determined by the second frequency and the second step width.
Wherein the second frequency is set to be related to the refresh frequency of the display screen, and the second frequency is greater than the first frequency, and the second frequency f can be set during the specific implementation process 1 The method comprises the following steps: the display screen is refreshed M times, the progress bar is refreshed once, i.e. f 2 =f 0 and/M, N is more than or equal to 10 and more than or equal to 1. For example when setting the first frequency f 1 =f 0 N, and f 2 =f 0 Time, i.e. the second frequency f 2 Is equal to the first frequency f 1 N is an integer greater than or equal to 10. Of course, the second frequency may be set to other frequencies, which is not limited by the present invention.
In a specific embodiment, the second stride may be set as a constant speed stride, for example, the second stride is set to be 1%, which indicates that the progress of each update at the second frequency is 1%, or the second stride may be set as a non-constant speed stride, for example, the second stride is set as a random progress, which may be set to be 1% to 5%.
In the embodiment of the present invention, since the execution of the plurality of execution threads is completed before step S4, the display progress bar is updated by step S4 using a second update parameter different from the first update parameter until the end, and meanwhile, the second frequency is related to the display screen refresh frequency, and the second frequency is greater than the first frequency, thereby achieving the purpose of more quickly prompting the user that the executed object has completed execution.
As a further preferred embodiment, in the process of updating and displaying the progress bars corresponding to the multiple execution threads by using the first update parameter in step S1, the method may further include:
when the progress of the progress bar reaches a second progress threshold, if it is monitored that the multiple execution threads are not executed to a preset stage, adjusting a first updating parameter, wherein the second progress threshold is smaller than the first progress threshold.
The second progress threshold is set corresponding to a preset stage, in a specific implementation process, the second progress threshold can be set to be 1/2 of the first progress threshold, and the preset stage is 1/2 of the overall completion degree of the multiple execution threads; for another example, the second progress threshold is set to be 1/3 of the first progress threshold, and the preset stage is 1/3 of the overall completion degree of the multiple execution threads, which is not limited in the present invention.
Specifically, when the progress of the progress bar reaches the second progress threshold, if it is monitored that the multiple execution threads are not executed to the preset stage, the first update parameter may be adjusted by increasing the first frequency and/or the first stride.
In the embodiment of the invention, when the progress of the progress bar reaches the second progress threshold, if the fact that the multiple execution threads are not executed to the preset stage is monitored, the first updating parameter is adjusted, so that the progress bar updated and displayed by the first updating parameter can be adapted to the overall execution progress of the multiple execution threads; meanwhile, before or when the progress of the progress bar reaches the first progress threshold value, the completion information of the multiple execution threads can be monitored, so that the control progress bar can simulate the actual execution progress of the multiple execution threads relatively closely, and meanwhile, the progress of the whole progress bar is smooth.
In addition, by analogy, a third progress threshold smaller than the second progress threshold can be set, whether the multiple execution threads are executed to other preset stages or not is monitored when the progress of the progress bar reaches the third progress threshold, whether the first updating parameter needs to be adjusted or not is determined according to a monitoring result, and details of a specific process are not repeated.
Referring to fig. 2, fig. 2 is a schematic view of an application scenario of the progress bar display control method according to the embodiment. In fig. 2, a progress bar corresponding to resource loading for an APP application is shown, and by the progress bar display control method provided by the present invention, the progress of the progress bar is smooth as a whole, so that a situation that a user cancels execution of a task due to long-time jamming of the progress bar can be avoided, and user experience is improved.
The invention provides a progress bar display control method, which comprises the steps of dividing the whole progress bar into two stages, updating and displaying the progress bar corresponding to a plurality of execution threads in the first stage by adopting a first updating parameter, monitoring the completion information of the plurality of execution threads at the same time, and controlling the updating process of the progress bar in the first stage according to whether the completion information of the plurality of execution threads is monitored in the first stage, so that the completion information of the plurality of execution threads can be monitored in the first stage; in addition, after the completion information is monitored, the display progress bar is updated by adopting a second updating parameter in the second stage until the completion, and the completion results of the multiple execution threads can be displayed in the second stage; therefore, compared with the prior art, the method provided by the invention displays the overall execution progress of the multiple execution threads by using the virtual progress bar, ignores the actual execution progress of the multiple execution threads, can simplify the implementation mode of the progress bar display control, can also accelerate the development speed of the progress bar, and reduces the development risk of the progress bar, and in addition, because the progress bar is smooth as a whole, the situation that a user cancels the execution task due to long-time blocking of the progress bar can be avoided, and the user experience is improved.
Referring to fig. 3, in an embodiment of the present invention, a progress bar display control apparatus is further provided, where the apparatus 3 includes a first updating module 31, a monitoring module 32, a triggering module 33, an update stopping module 34, and a second updating module 35; wherein, the first and the second end of the pipe are connected with each other,
the first updating module 31 is configured to update and display progress bars corresponding to the multiple execution threads by using a first updating parameter when the start instructions of the multiple execution threads are obtained;
a monitoring module 32, configured to monitor completion information of multiple execution threads;
a triggering module 33, configured to trigger a second updating module 35 if the completion information is monitored before or when the progress of the progress bar reaches the first progress threshold, and trigger a stop updating module 34 if the completion information is not monitored when the progress of the progress bar reaches the first progress threshold;
a stop update module 34, configured to stop updating the display progress bar until the monitoring module monitors the completion information, and execute a second update module;
and a second updating module 35, configured to update the display progress bar with a second update parameter different from the first update parameter until the end.
Further, the first updating module 31 is specifically configured to:
updating the display progress bar by using a first updating parameter determined by the first frequency and the first step;
the first frequency is set to be related to the display screen refreshing frequency, and the first step is the progress of each updating of the progress bar at the first frequency.
Further, the first stride is a non-uniform rate of progress.
Further, the second updating module 35 is specifically configured to:
updating the display progress bar using a second update parameter determined by the second frequency and the second step;
wherein the second frequency is set to be related to the display screen refresh frequency, and the second frequency is greater than the first frequency;
the second stride is the progress of the progress bar at each update at the second frequency.
Further, the second stride is a uniform speed progress or a non-uniform speed progress.
Further, the second frequency is equal to N times the first frequency, where N is an integer greater than or equal to 10.
Further, the first progress threshold is close to 100%.
Further, the apparatus 3 further comprises an adjustment module 36;
the adjusting module 36 is configured to, when the progress of the progress bar reaches the second progress threshold, adjust the first update parameter if it is monitored that the multiple execution threads are not executed to the preset stage;
wherein the second progress threshold is less than the first progress threshold.
The invention provides a progress bar display control device, which firstly divides the whole progress bar into two stages, adopts a first updating parameter to update and display the progress bar corresponding to a plurality of execution threads in the first stage, simultaneously monitors the completion information of the plurality of execution threads, and controls the updating process of the progress bar in the first stage according to whether the completion information of the plurality of execution threads is monitored in the first stage, thereby ensuring that the completion information of the plurality of execution threads is monitored in the first stage; in addition, after the completion information is monitored, the display progress bar is updated by adopting a second updating parameter in the second stage until the completion, and the completion results of the multiple execution threads can be displayed in the second stage; therefore, compared with the prior art, the method and the device have the advantages that the virtual progress bar is used for displaying the overall execution progress of the multiple execution threads, the actual execution progress of the multiple execution threads is ignored, the implementation mode of the progress bar display control can be simplified, the development speed of the progress bar can be increased, the development risk of the progress bar is reduced, in addition, the overall progress bar is smooth, the situation that a user cancels the execution task due to long-time blocking of the progress bar can be avoided, and the user experience is improved.
In addition, an embodiment of the present invention further provides a progress bar display control device, including:
one or more processors;
a memory;
a program stored in the memory, which when executed by the one or more processors, causes the processors to perform the steps of the progress bar display control method of any of the above embodiments.
Another embodiment of the present invention further provides a computer-readable storage medium storing a program, which, when executed by a processor, causes the processor to execute the steps of the progress bar display control method according to any one of the above embodiments.
As will be appreciated by one of skill in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (9)

1. A progress bar display control method, characterized in that the method comprises the steps of:
s1, when starting instructions of a plurality of execution threads are obtained, updating and displaying progress bars corresponding to the plurality of execution threads by adopting a first updating parameter, and monitoring completion information of the plurality of execution threads;
s2, if the completion information is monitored before or when the progress of the progress bar reaches a first progress threshold, executing S4, and if the completion information is not monitored when the progress of the progress bar reaches the first progress threshold, executing S3;
s3, stopping updating the progress bar until the completion information is monitored, and executing the step S4;
s4, updating and displaying the progress bar by adopting a second updating parameter different from the first updating parameter until the process is finished;
in the process of updating and displaying the progress bars corresponding to the multiple execution threads by using the first update parameter in step S1, the method further includes:
when the progress of the progress bar reaches a second progress threshold, if the fact that the multiple execution threads are not executed to a preset stage is monitored, adjusting the first updating parameters;
wherein the second progress threshold is less than the first progress threshold.
2. The method according to claim 1, wherein in step S1, the updating and displaying the progress bars corresponding to the plurality of execution threads by using the first update parameter includes:
updating and displaying the progress bar by adopting the first updating parameter determined by the first frequency and the first step;
wherein the first frequency is set to be related to a display screen refreshing frequency, and the first step is the progress of each update of the progress bar at the first frequency.
3. The method of claim 2, wherein in step S4, said updating the progress bar with a second update parameter different from the first update parameter until the end comprises:
updating and displaying the progress bar by using the second updating parameter determined by the second frequency and the second step;
wherein the second frequency is set in relation to the display screen refresh frequency and the second frequency is greater than the first frequency;
the second stride is the progress of each update of the progress bar at the second frequency.
4. A progress bar display control device is characterized by comprising a first updating module, a monitoring module, a triggering module, an updating stopping module, a second updating module and an adjusting module; wherein the content of the first and second substances,
the first updating module is used for updating and displaying progress bars corresponding to a plurality of execution threads by adopting a first updating parameter when starting instructions of the plurality of execution threads are obtained;
the monitoring module is used for monitoring the completion information of the multiple execution threads;
the triggering module is configured to trigger the second updating module if the completion information is monitored before or when the progress of the progress bar reaches a first progress threshold, and trigger the update stopping module if the completion information is not monitored when the progress of the progress bar reaches the first progress threshold;
the update stopping module is used for stopping updating and displaying the progress bar until the monitoring module monitors the completion information, and executing the second updating module;
the second updating module is used for updating and displaying the progress bar by adopting a second updating parameter different from the first updating parameter until the end;
the adjusting module is configured to, when the progress of the progress bar reaches a second progress threshold, adjust the first update parameter if it is monitored that the multiple execution threads are not executed to a preset stage;
wherein the second progress threshold is less than the first progress threshold.
5. The apparatus of claim 4, wherein the first update module is specifically configured to:
updating and displaying the progress bar by using the first updating parameter determined by the first frequency and the first step;
wherein the first frequency is set to be related to a display screen refreshing frequency, and the first step is the progress of each update of the progress bar at the first frequency.
6. The apparatus of claim 5, wherein the first stride is a non-uniform rate of progress.
7. The apparatus of claim 5, wherein the second update module is specifically configured to:
updating and displaying the progress bar by using the second updating parameter determined by the second frequency and the second step;
wherein the second frequency is set in relation to the display screen refresh frequency and the second frequency is greater than the first frequency;
the second stride is the progress of each update of the progress bar at the second frequency.
8. A progress bar display control apparatus, characterized in that the apparatus comprises:
one or more processors;
a memory;
the program stored in the memory, when executed by the one or more processors, causes the processors to perform the steps of the progress bar display control method according to any one of claims 1 to 3.
9. A computer-readable storage medium characterized by storing a program which, when executed by a processor, causes the processor to execute the steps of the progress bar display control method according to any one of claims 1 to 3.
CN201810214564.3A 2018-03-15 2018-03-15 Progress bar display control method and device and computer readable storage medium Active CN110275816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810214564.3A CN110275816B (en) 2018-03-15 2018-03-15 Progress bar display control method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810214564.3A CN110275816B (en) 2018-03-15 2018-03-15 Progress bar display control method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110275816A CN110275816A (en) 2019-09-24
CN110275816B true CN110275816B (en) 2022-11-11

Family

ID=67958115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810214564.3A Active CN110275816B (en) 2018-03-15 2018-03-15 Progress bar display control method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110275816B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685116A (en) * 2020-12-29 2021-04-20 福州数据技术研究院有限公司 Method for displaying gene data processing progress and storage device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183322A (en) * 2015-09-18 2015-12-23 百度在线网络技术(北京)有限公司 Progress bar display method and device
CN105242923A (en) * 2015-09-25 2016-01-13 努比亚技术有限公司 Display control apparatus and method for data processing progress
CN107239386A (en) * 2017-06-06 2017-10-10 网易(杭州)网络有限公司 A kind of progress display methods and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183322A (en) * 2015-09-18 2015-12-23 百度在线网络技术(北京)有限公司 Progress bar display method and device
CN105242923A (en) * 2015-09-25 2016-01-13 努比亚技术有限公司 Display control apparatus and method for data processing progress
CN107239386A (en) * 2017-06-06 2017-10-10 网易(杭州)网络有限公司 A kind of progress display methods and device

Also Published As

Publication number Publication date
CN110275816A (en) 2019-09-24

Similar Documents

Publication Publication Date Title
US10210845B2 (en) Method and apparatus for compensating for variable refresh rate display range limitations
US9189098B2 (en) Systems and methods for syncing haptic feedback calls
US20180300838A1 (en) Intra-frame real-time frequency control
US9129394B2 (en) CPU-GPU parallelization
CN108828966B (en) Method and device for displaying equipment information in smart home system
CN105791985B (en) Media stream data method for down loading and device
CN106383712B (en) Toast component implementation method and system
CN110275816B (en) Progress bar display control method and device and computer readable storage medium
US10289450B2 (en) Processing workloads in single-threaded environments
US11942062B2 (en) Frame rate adjusting method and apparatus for display screen, terminal, and storage medium
CN111447239B (en) Video stream playing control method, device and storage medium
CN113760080A (en) Display method, display device and storage medium
CN106020760A (en) Multi-display-brightness data display method and device
CN113691859A (en) Video caching method, device, equipment and medium
CN109885340B (en) Application cold start acceleration method and device and electronic equipment
CN110750284A (en) Application quick starting method, terminal and computer readable storage medium
CN114153584A (en) Task processing method, equipment and storage medium for game frame circulation
CN111338719A (en) Electronic device, display method thereof, and storage medium
WO2016082200A1 (en) Adjustment method and device for terminal-setting parameter
WO2015161775A1 (en) Gui display method and apparatus, and terminal device
CN108063900B (en) Method and device for regulating and controlling light supplementing lamp and storage medium
CN106815036B (en) Load prompting method and device
CN107729107B (en) Modal dialog box processing method and device
GB2545435B (en) Data processing systems
WO2019001077A1 (en) Method and apparatus for controlling synchronization of cpu threads and gpu threads

Legal Events

Date Code Title Description
PB01 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