Supercharge Your Innovation With Domain-Expert AI Agents!

Order overtime processing method and system

A technology for overtime processing and commands, applied in the computer field, can solve problems such as command timeout, and achieve the effect of avoiding major changes, saving computing processes, and ensuring stable operation.

Active Publication Date: 2018-11-30
SHENZHEN DEMINGLI ELECTRONICS
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to propose a command timeout processing method and system for the problem that the commands on the device side in the above prior art are prone to timeout, which can effectively avoid the problem of command timeout

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
  • Order overtime processing method and system
  • Order overtime processing method and system
  • Order overtime processing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] refer to figure 1 , the present embodiment provides a command timeout processing method, including:

[0051] Step S101, establishing a command queue;

[0052] Step S102, receiving a command sent by the host, and adding the command to the command queue;

[0053] Step S103, recording the time when the command is queued and the preset timeout period, and estimating the time required for the execution of the command;

[0054] Step S104, detecting whether any command has been executed, and if so, recording the completion time of the command;

[0055] Step S105, updating the waiting time of each command in the command queue according to the completion time of the executed command and the queue entry time of each command in the command queue;

[0056] Step S106, updating the execution time required for each command according to the system operation;

[0057] Step S107, traversing the waiting time and execution time of each command in the command queue, and judging whether ...

Embodiment 2

[0076] refer to image 3 , this embodiment provides a command timeout processing system, including a host 201 and a device 202, the device 202 includes a communication module 2023, a processor 2021 and a memory 2022, the communication module 2023 is used to establish a communication connection with the host 201, and the memory 2022 stores multiple instructions, the processor 2021 is used to read the plurality of instructions and execute:

[0077] Create a command queue;

[0078] receiving a command sent by the host, and adding the command to the command queue;

[0079] Recording the enqueue time and preset timeout period of the command, and estimating the time required for the execution of the command;

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

PUM

No PUM Login to View More

Abstract

The invention provides an order overtime processing method and system. The method includes: building an order queue; receiving orders sent by a host, and adding the orders into the order queue; recording queuing moment of the orders and preset overtime duration, and estimating duration needed for executing the order; detecting whether there are orders whose execution is completed or not, and if yes, recording completion moment of the orders; according to the completion moment of the orders whose execution is already completed and the queuing moment of each order in the order queue, updating waiting duration of each order in the order queue; updating duration needed for executing each order according to system running condition; traversing the waiting duration and the duration needed for execution of each order in the order queue to judge whether order overtime occurs or not; if yes, adjusting overtime orders. By the method, the problem of overtime of the orders can be avoided effectively.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a command timeout processing method and system. Background technique [0002] In the current control system, the processing speed of the host computer is getting faster and faster, but in many cases, the running frequency of the device side cannot be consistent with that of the host computer. The device side generally uses the form of command queue to buffer commands to facilitate post-processing. However, once the command on the device side is executed, it cannot exit the service as easily as the host, and needs to wait for the command to be executed or exit after a timeout. This will cause some high-priority commands to be executed in advance, while some low-priority commands are prone to timeout. Contents of the invention [0003] The purpose of the present invention is to propose a command timeout processing method and system for the above-mentioned problem in th...

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
CPCG06F9/4881G06F9/5038
Inventor 罗胜谭四方梁永权
Owner SHENZHEN DEMINGLI ELECTRONICS
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More