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

A virtual resource allocation method and device

A technology of virtual resources and allocation devices, applied in the computer field, can solve problems such as inaccurate methods, deterministic replay of transaction memory, hidden dangers of data competition inspection accuracy, kernel not knowing user-level threads, etc., and achieve the effect of avoiding switching omissions

Active Publication Date: 2017-11-07
HUAWEI TECH CO LTD +1
View PDF8 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The kernel does not know the existence of user-level threads, and the switching of user-level threads may occur in user space
The occurrence of this switch cannot be known by the kernel. Therefore, the method of saving hardware resources related to user-level threads during process context switching is not accurate enough, and the switching of user-level threads will be missed, giving transactional memory, deterministic replay and Methods such as data race checking pose serious accuracy hazards

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
  • A virtual resource allocation method and device
  • A virtual resource allocation method and device
  • A virtual resource allocation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention.

[0057] figure 1 It is a schematic flowchart of a method for allocating virtual resources provided by an embodiment of the present invention. The embodiment of the present invention is suitable for virtualizing hardware resources for user-level threads in an operating system, and the method is usually executed by a virtual resource allocation device, which is generally a computer or a functional unit or module in the computer. specific reference figure 1 , can include the following steps:

[0058] Step 10. When the user-level thread is suspended, the virtual resource allocation device saves the hardware resource corresponding to the user-level thread in the control ...

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

Disclosed in the embodiments of the present invention are a virtual resource allocation method and apparatus, which are applied to the technical field of computers and can avoid switch missing of a user level thread during a process context switch. The method comprises: when the user level thread is suspended, the virtual resource allocation apparatus saving hardware resources corresponding to the user level thread in a control data block of the user level thread; and the virtual resource allocation apparatus saving the hardware resources corresponding to the user level thread in a control data block of a lightweight process corresponding to the user level thread. The embodiments of the present invention are applied to virtual resource allocation.

Description

technical field [0001] The invention relates to computers, in particular to a virtual resource allocation method and device. Background technique [0002] Saves the relevant hardware state of user-level threads during process context switches. This method is widely used in hardware implementation methods such as transactional memory and deterministic replay. In the above application, different user-level threads need to be distinguished. For example, in deterministic replay, memory access conflicts from different user-level threads need to be checked and recorded. Therefore, when user-level threads are switched, hardware resources related to user threads need to be saved and updated. Another example is in the transaction memory, a transaction belongs to a user-level thread. When the user-level thread switches, we need to know the occurrence of the event and save the state related to the user-level thread transaction. Otherwise, transaction atomicity cannot be guaranteed. ...

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/50
CPCG06F9/461
Inventor 唐士斌唐志敏宋风龙叶笑春
Owner HUAWEI 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