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 function, data lock and unlock, etc., and achieve the effect of avoiding the failure of the lock function

Active Publication Date: 2016-08-24
BEIJING QIHOO TECH CO LTD
View PDF3 Cites 6 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

The invention discloses a code control method and device. The code control method includes the steps that hardware information of equipment is acquired; a specific application programming interface of an operation system on the equipment is called according to the hardware information, wherein the specific application programming interface is used for controlling execution of specific target codes on the equipment so that the execution sequence of the specific target codes can be consistent with that indicated by specific source codes, wherein the specific target codes are acquired by compiling the specific source codes. According to the code control method and device, the execution sequence of the specific target codes is controlled to be consistent with that indicated by the specific source codes by calling the specific application programming interface on the equipment, and thus the problem that the lock function fails due to automatic adjustment of the equipment on the execution sequence of the target codes can be easily avoided.

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 Applications(China)
IPC IPC(8): G06F9/38G06F9/30
CPCG06F9/30174G06F9/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