Method for eliminating conflict generated by accessing hardware resources by multiple pieces of software, and equipment
A hardware resource and hardware technology, applied in the direction of program control design, instrumentation, calculation, etc., to achieve the effect of conflict resolution
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] figure 1 It is a schematic block diagram of a method for resolving conflicts between multiple software accessing hardware resources in an embodiment of the present invention.
[0037] figure 2 Shown is a flowchart of a method for resolving conflicts between multiple software accessing hardware resources in an embodiment of the present invention.
[0038] In the method for resolving conflicts between multiple software accessing hardware resources provided by the embodiment of the present invention, an isolation program is set between the hardware SDK and application software (for example, including software A and software B), and the hardware SDK is loaded by the isolation program. Software A and software B communicate; software A and software B send instructions for accessing hardware resources to the isolation program to call the hardware SDK through the isolation program to access the actual hardware resources, and finally achieve the technical effect of solving the confli...
Embodiment 2
[0055] image 3 It is a flowchart of different software invoking the hardware SDK to execute the data writing instruction and the data reading instruction according to the embodiment of the present invention. Among them, application software A needs to write data into hardware resources, and application software B needs to read data from hardware resources.
[0056] Step S1. The isolation program loads the hardware SDK. The hardware SDK is a software development kit provided by the hardware manufacturer. The isolation program loads the hardware SDK to initialize the hardware.
[0057] Step S2, the isolation program creates an instruction queue.
[0058] Step S3: The isolation program creates a scanning thread, and the scanning thread is used to scan the instruction queue. In a specific example, the scanning thread scans the instruction queue according to a preset cycle.
[0059] Step S411: The application software A sends a data write instruction to the isolation program, and the is...
Embodiment 3
[0075] On the basis of Embodiment 1, the present invention also provides a computer device for implementing the method, as attached Figure 5 As shown, the computer device 300 includes a processor 3010, a memory 3020, an interface device 3030, a communication device 3040, a display device 3050, an input device 3060, a speaker 3070, a microphone 3080, and so on.
[0076] The processor 3010 may be, for example, a central processing unit CPU, a microprocessor MCU, or the like. The memory 3020 includes, for example, ROM (Read Only Memory), RAM (Random Access Memory), nonvolatile memory such as a hard disk, and the like. The interface device 3030 includes, for example, a USB interface, a headphone interface, and the like. The communication device 3040 can perform wireless communication or wired communication, for example. The display device 3050 is, for example, a liquid crystal display, a touch display, or the like. The input device 3060 may include, for example, a touch screen, a...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


