Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Code control method and device

A code control and code technology, applied in the computer field, can solve problems such as inability to play a role, inability to achieve data locking and unlocking, and achieve the effect of avoiding the failure of the lock function

Active Publication Date: 2019-02-19
BEIJING QIHOO TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Although the source code is written in the order of realizing the locking and unlocking functions (which can be called the lock function), due to hardware and software design reasons, in the process of compiling the source code and executing the object code, the device may optimize the execution order of the code and adjustment, so that the execution order of the target code used to realize the locking and unlocking function changes, so that the locking and unlocking of the data cannot be realized, resulting in the possibility that multiple processes may update the data at the same time
In other words, even if the lock function is added when writing the source code, it may not be able to function due to the code optimization performed by the device itself

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
  • Code control method and device
  • Code control method and device
  • Code control method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0018] As mentioned above, operations against a database can be written as source code, and a compiler can be used to compile the source code into object code. Object code is machine-readable and can be executed by a device such as a computer to perform operations against a database.

[0019] figure 1 A schematic diagram showing the operation represented by the exemplary source code. exist figure 1 , the source code in block 110...

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

A code control method and apparatus. The code control method comprises: acquiring hardware information of a device (S210); and invoking, according to the hardware information, a specific application programming interface of an operating system on the device, wherein the specific application programming interface is used for controlling the execution of a specific target code acquired by compiling a specific source code on the device, so that an execution sequence of the specific target code is consistent with the execution sequence indicated by the specific source code (S220). The code control method and apparatus control the execution sequence of the specific target code to be consistent with the execution sequence indicated by the specific source code by invoking the specific application programming interface on the device, thus helping to avoid the problem of the failure of a locking function caused by the automatic adjustment of the device to the execution sequence of the target code.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a code control method and device. Background technique [0002] Some data storage systems, such as databases, are shared resources used by multiple users. The database is taken as an example for description below. When multiple users access data in the database concurrently, it may happen that multiple processes simultaneously access the same data. If the concurrent operations are not controlled, incorrect data may be read and stored, destroying the consistency of the database. [0003] For example, suppose you store inventory data for a certain commodity in your database. When the database receives a request from the user to purchase the product, it can query the inventory data, and if it finds that there is still inventory at this time, it can update the inventory data and return an indication that it can be purchased. Assuming that the current inventory data is 1, and tw...

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 Patents(China)
IPC IPC(8): G06F9/38G06F9/30
CPCG06F9/38
Inventor 郭军
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products