Unlock instant, AI-driven research and patent intelligence for your innovation.

State machine operation method and device, computer equipment and storage medium

An operation method and state machine technology, applied in the computer field, can solve problems such as the influence of software system operating efficiency, achieve the effects of reducing logical operations, delaying logical operations, and improving operating efficiency

Pending Publication Date: 2022-01-28
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in some scenarios, the input state may change multiple times in a short period of time, and the module that cares about the output state only hopes to actively obtain the latest state value at a specific time
In this scenario, using the conventional subscription method will cause unnecessary calculation logic and notification callbacks, which will have a serious impact on the operating efficiency of the software system, especially when there are many input states and few output states. This effect is multiplied

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
  • State machine operation method and device, computer equipment and storage medium
  • State machine operation method and device, computer equipment and storage medium
  • State machine operation method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0039] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are to distinguish two entities with the same name but different parameters or parameters that are not the same, see "first" and "second" It is only for the convenience of expression, and should not be construed as a limitation on the embodiments of the present invention, which will not be described one by one in the subsequent embodiments.

[0040] Please refer to Figure 1A as shown, Figure 1A A schematic flow chart of a state machine operation method 100 in an embodiment of the present invention is shown. Specifically, the method includes the following steps:

[0041] Step 101, in re...

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 relates to a state machine operation method and device, computer equipment and a storage medium. The method comprises the following steps: in response to detecting that an input state of a state machine is changed, cancelling the execution of logical operation by the state machine, and storing the changed input state to a preset position; in response to detection of a reading operation of an external module on the state machine, executing a logical operation based on the data in the current preset position by using the state machine to generate an output state; and returning the output state to the external module. According to the scheme, the state machine is driven to run through the reading operation, the purpose of delaying logical operation is achieved, the problems that calculation logic is repeatedly executed and notice is returned when the input state is frequently changed are avoided, unnecessary logical operation is reduced, and the running efficiency of the state machine is improved.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a state machine operation method, device, computer equipment and storage medium. Background technique [0002] In software systems, state machines are a common programming pattern. In the conventional state machine programming mode, the occurrence of an event or the change of the input state will cause the operation of the state machine, execute certain calculation logic, and obtain a certain output state, and other modules that care about the output state usually subscribe to this state , so as to be notified in time when changes occur, so as to take the next step. [0003] At present, the operation mode of the traditional state machine is to run the state machine when the input state changes, and generate the corresponding output state. However, in some scenarios, the input state may change multiple times in a short period of time, and the module that cares ab...

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/448
CPCG06F9/4482
Inventor 郭强张璐
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD