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

Data access method, device and equipment

A technology for data access and access duration, applied in the computer field, can solve the problems of data access errors, low data access reliability, and inability to prevent multiple processes from accessing critical sections at the same time, so as to achieve the effect of improving reliability.

Active Publication Date: 2021-06-08
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The mutex is suitable for multiple threads in the same process, that is, the mutex can prevent multiple threads in the same process from accessing the critical section at the same time, however, the mutex cannot prevent multiple processes from accessing the critical section at the same time, which may make multiple The process accesses the critical area at the same time, which makes the data access error, which leads to the low reliability of the data access.

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
  • Data access method, device and equipment
  • Data access method, device and equipment
  • Data access method, device and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0084] In order to make the purposes, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments These are some, but not all, embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present disclosure.

[0085] figure 1 The system architecture diagram provided for the embodiment of the present disclosure. See figure 1 , including a plurality of processes, a critical section, a first shared area, and a second shared area. The multiple processes may be processes corresponding to different application programs in the electronic device (e...

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

Embodiments of the present disclosure provide a data access method, device, and device. The method includes: before the first thread accesses the critical section, writing a random number corresponding to the first thread in the first shared area, the first The shared area can store a random number; when the second shared area is empty, or the random number in the second shared area is a preset value, write in the second shared area the corresponding A random number, the second shared area can store a random number; according to the random number at the current moment in the first shared area and the random number in the second shared area, determine whether the first thread accesses the critical section. Improved data access reliability.

Description

technical field [0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular, to a data access method, device, and equipment. Background technique [0002] A critical section refers to a program fragment that accesses shared resources. At the same time, at most one thread is allowed to access the critical section, that is, access to the critical section is mutually exclusive. [0003] In most devices, the mutex can be implemented based on the hardware of the device, for example, the mutex can be implemented based on the atomicity, interrupt and memory bus mechanism of the central processing unit (Central Processing Unit, CPU) of the device. The mutex is suitable for multiple threads in the same process, that is, the mutex can prevent multiple threads in the same process from accessing the critical section at the same time, however, the mutex cannot prevent multiple processes from accessing the critical section at the same tim...

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/52G06F9/54
CPCG06F9/526G06F9/544
Inventor 石小涛
Owner BEIJING BYTEDANCE NETWORK TECH CO LTD