Method and device to manage and control resources used by process
A technology that occupies resources and processes. It is applied in the computer field and can solve problems such as resource occupation, poor container isolation effect, and identification.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0078] The embodiment of the present invention provides a method for managing and controlling resource occupation by a process, such as figure 1 Shown, including:
[0079] Step 101: When a resource occupation request message is received, determine the container to which the process sending the resource occupation request message belongs and / or the mode of the current system and / or the type of the resource occupation request message.
[0080] For the embodiment of the present invention, when a resource occupation request message is received, it is determined whether the container to which the process sending the resource occupation request message belongs is a preset container (restricted container) and / or whether the current system mode is strict mode, And / or whether the resource occupation request message is a message requesting expanded access to resources.
[0081] Among them, strict mode is a system mode that does not perform any operation.
[0082] Step 102: Based on the determin...
Embodiment 2
[0085] Another possible implementation manner of the embodiment of the present invention, on the basis of the first embodiment, further includes the operations shown in the second embodiment, wherein:
[0086] Step 101 and step 102 include step a (not marked in the figure) and step b (not marked in the figure), in which,
[0087] Step a: When the resource occupation request message is received, it is determined whether the container to which the process sending the resource occupation request message belongs is a preset container.
[0088] For the embodiment of the present invention, the preset container is a restricted container, that is, if a certain container belongs to the preset container, the process in the container is restricted to perform the operation corresponding to the message requesting expanded access to the resource.
[0089] The method of determining the container of the process sending the resource occupation request message includes: determining the container of the ...
Embodiment 3
[0104] Another possible implementation manner of the embodiment of the present invention, on the basis of the one shown in the first embodiment, further includes the operation shown in the third embodiment, wherein:
[0105] Step 101 and step 102 include step c (not marked in the figure) and step d (not marked in the figure), in which,
[0106] Step c: When the resource occupation request message is received, it is determined whether the resource occupation request message is a message for requesting resource expansion.
[0107] For the embodiment of the present invention, the manner of determining that the resource occupation request message is a message for requesting resource expansion is detailed in Embodiment 2, and will not be repeated here.
[0108] After step c, it further includes: if it is a request to expand the resource, determining whether the container to which the process sending the resource occupation request message belongs is a preset container; if it is not a preset...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

