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

A method and device for using exclusive resources

A resource and resource library technology, applied in the computer field, can solve problems such as abnormal resource use, avoid resource conflicts, achieve effective control, and improve use efficiency.

Active Publication Date: 2017-08-04
SHENZHEN KEMANDA INTELLIGENT MANAGEMENT SCI &TECH
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Existing technology responds to single-threaded requests, but modern computer system software generally includes multi-threaded concurrent processing mechanisms, and there are concurrent requests for exclusive resources, which will cause resource usage exceptions

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 method and device for using exclusive resources
  • A method and device for using exclusive resources
  • A method and device for using exclusive resources

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0023] The procedure of the first embodiment of a method for using exclusive resources in the present invention, see figure 1 , the method includes:

[0024] 101: Obtain a resource use request, where the resource use request is used by an initiator of the resource use request to request to use resources in the resource library. Resources can be files, serial ports, printers, etc.

[0025] For example, get a usage request to use the printer SHARP DM-3501.

[0026] 102: Determine whether the state of the resource is in use. Query the state of the resource according to the identifier of the resource, and judge whether the state of the resource is in use.

[0027] For example, the status of the printer SHARP DM-3501 is found to be unus...

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 method and device for using exclusive resources, belonging to the field of computers. The method includes: obtaining a resource use request, the resource use request is used by the originator of the resource use request to request to use the resource in the resource library; judging whether the state of the resource is in use; if the state of the resource is in use state, put the resource use request into the waiting queue; if the state of the resource is unused, take the resource from the resource library, and use the resource by the initiator of the resource use request, Mark the state of the resource as in use; after the initiator of the resource use request finishes using the resource, mark the state of the resource as unused, query the waiting queue, and activate the Resource usage requests. Through the method and device for using exclusive resources, the present invention improves the efficiency of using exclusive resources.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method and device for using exclusive resources. Background technique [0002] Exclusive resources, such as files, serial ports, printers, etc., can only be used by one request at a time. The existing technology responds to single-threaded requests, but modern computer system software generally includes a multi-threaded concurrent processing mechanism, and there are concurrent requests for exclusive resources, which will cause resource usage exceptions. Contents of the invention [0003] Embodiments of the present invention provide a method and device for using exclusive resources, which improve the efficiency of using exclusive resources. [0004] On the one hand, an embodiment of the present invention provides a method for using exclusive resources, the method comprising: [0005] Obtaining a resource use request, where the resource use request is used by the initiator of the res...

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
Inventor 唐健陈毅林杨培清
Owner SHENZHEN KEMANDA INTELLIGENT MANAGEMENT SCI &TECH