CN101883436B - Concurrent processing method and system for resources and mobile terminal - Google Patents

Concurrent processing method and system for resources and mobile terminal Download PDF

Info

Publication number
CN101883436B
CN101883436B CN201010209423.6A CN201010209423A CN101883436B CN 101883436 B CN101883436 B CN 101883436B CN 201010209423 A CN201010209423 A CN 201010209423A CN 101883436 B CN101883436 B CN 101883436B
Authority
CN
China
Prior art keywords
resource
requesting party
resources requesting
priority
layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201010209423.6A
Other languages
Chinese (zh)
Other versions
CN101883436A (en
Inventor
张碧君
杜文彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201010209423.6A priority Critical patent/CN101883436B/en
Publication of CN101883436A publication Critical patent/CN101883436A/en
Application granted granted Critical
Publication of CN101883436B publication Critical patent/CN101883436B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention is applied to the technical fields of communications and provides a concurrent processing method and a concurrent processing system for resources and a mobile terminal. The concurrent processing method comprises the following steps of: receiving a message packet transmitted by an application layer; judging whether the resources requested by a resource request party are occupied, if so, judging whether the priority level of the resource request party is higher than that of a resource occupied party; when the priority level of the resource request party is higher than that of the resource occupied party, transmitting information of using the resources of the resource request party to the application layer, and executing the operation of using resources of the resource request party; when the priority level of the resource request party is lower than that of the resource occupied party, adding the resource request party into a waiting queue; and when the resources are not occupied, transmitting the information of using the resources of the resource request party to the application layer, and executing the operation of using the resource of the resource request party. In the method, the concurrent conflict processing operation is transferred from the application layer to a driving layer, which is convenient to manage and protect the concurrent conflict. Therefore, the system stability is improved.

Description

A kind of concurrent processing method of resource, system and mobile terminal
Technical field
The invention belongs to communication technical field, relate in particular to a kind of concurrent processing method, system and mobile terminal of resource.
Background technology
By platform, provide a concurrent function based on service application priority downwards, concurrently by uppermost application layer, realized, between each application, need there is coupling; By application layer, by calling the mode of inquiry, judge whether that other application take the resource that this application uses, if other application have taken this resource, then determine and carry out certain application by the priority of these two application; If this application priority is higher, hang up current application, open this application; Otherwise when application priority is lower than current application, this application is not carried out, and continue to carry out current application, and platform bottom layer driving only need realize the protection of reentrying.
But the operations such as concurrency conflict processing are all in application layer process, cause system stability poor, example: conflict is processed in application layer process and kept away between unavoidable each application and can mutually call, and needs there is coupling between each application; Modules independence is not strong; If need to increase a new application module in system, if there are other several application meetings to take the required resource of this module, need to revise the program of a plurality of application modules, software layer aggregated(particle) structure is clear not.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of concurrent processing method of resource, is intended to solve resource concurrence of the prior art and processes in application layer realization, causes the poor problem of system stability.
The embodiment of the present invention is achieved in that a kind of concurrent processing method of resource, and described method comprises the steps:
By driving layer to receive the message bag that application layer sends, described message bag comprises resources requesting party, resources requesting party's requested resource and precedence information;
By driving layer to judge that whether described resources requesting party's requested resource is occupied;
When the described resources requesting party's requested resource of judgement is occupied, by driving layer priority that judges described resources requesting party whether higher than the priority that takies the resource occupation side of described resource;
When described resources requesting party's priority is when taking the priority of resource occupation side of described resource, by driving layer will to use the information of described resource to send to described application layer described resources requesting party, and carry out the operation that described resources requesting party uses described resource;
When described resources requesting party's priority is when taking the priority of resource occupation side of described resource, by driving layer that described resources requesting party is joined in waiting list;
When the described resources requesting party's requested resource of judgement is unoccupied, by driving layer will to use the information of described resource to send to described application layer described resources requesting party, and carry out the step that described resources requesting party uses the operation of described resource;
Wherein, the described priority as described resources requesting party is when taking the priority of resource occupation side of described resource, by driving layer to be about to use the information of described resource to send to described application layer described resources requesting party, and also comprise the steps: after carrying out the step of the operation that described resources requesting party uses described resource
When described resources requesting party uses described resource, by driving the priority of the resources requesting party in layer judgement waiting list, and the assigned resources requesting party's of the resource after recovering message is sent to described application layer.
Another object of the embodiment of the present invention is to provide a kind of concurrent processing system of resource, and described system comprises:
Message bag receiver module, for receiving by driving layer the message bag that application layer sends, described message bag comprises resources requesting party, resources requesting party's requested resource and precedence information;
The first judge module, for judging that by driving layer whether described resources requesting party's requested resource is occupied;
Whether the second judge module, for when described the first judge module judges that described resources requesting party's requested resource is occupied, by driving layer priority that judges described resources requesting party higher than the priority that takies the resource occupation side of described resource;
Information sending module, for the priority that judges described resources requesting party when described the second judge module when taking the priority of resource occupation side of described resource, by driving layer will to use the information of described resource to send to described application layer described resources requesting party, and carry out the operation that described resources requesting party uses described resource; And
Waiting list adds module, for the priority that judges described resources requesting party when described the second judge module when taking the priority of resource occupation side of described resource, by driving layer that described resources requesting party is joined in waiting list;
When described the first judge module judges that described resources requesting party's requested resource is unoccupied, described information sending module will be used the information of described resource to send to described application layer described resources requesting party, and carries out the step that described resources requesting party uses the operation of described resource;
The second information sending module, for when described resources requesting party uses described resource, by driving the priority of the resources requesting party in layer judgement waiting list, and sends to described application layer by the assigned resources requesting party's of the resource after recovering message.
Another object of the embodiment of the present invention is to provide a kind of mobile terminal that comprises the concurrent processing system of resource.
In embodiments of the present invention, receive the message bag that application layer sends; Judge that whether resources requesting party's requested resource is occupied; When judgement resources requesting party requested resource is occupied, judge that whether resources requesting party's priority is higher than the priority that takies the resource occupation side of resource; When resources requesting party's priority is when taking the priority of resource occupation side of resource, will use the information of described resource to send to application layer resources requesting party, and carry out the operation that resources requesting party uses resource; When resources requesting party's priority is when taking the priority of resource occupation side of resource, resources requesting party is joined in waiting list; When judgement resources requesting party requested resource is unoccupied; to use the information of resource to send to described application layer resources requesting party; and carry out the step that resources requesting party uses the operation of resource, and be convenient to management and the protection of concurrency conflict, improved the stability of system.
Accompanying drawing explanation
Fig. 1 is the realization flow figure of the concurrent processing method of the resource that provides of the embodiment of the present invention;
Fig. 2 is the realization flow figure of the concurrent processing method of the resource that provides of the specific embodiment of the invention;
Fig. 3 is the structured flowchart of the concurrent processing system of the resource that provides of the embodiment of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Fig. 1 shows the realization flow of the concurrent processing method of the resource that the embodiment of the present invention provides, and its concrete step is as described below:
In step S101, receive the message bag that application layer sends, described message bag comprises resources requesting party, resources requesting party's requested resource and precedence information.
In embodiments of the present invention, application layer sends to message bag to drive layer, drives layer to realize concurrent processing operation.
Wherein, this message bag comprises resources requesting party's information and resources requesting party's requested resource, and this resource comprises the information such as application resource (such as audio frequency and video passage) and hardware resource (display screen).
In step S102, judge that whether described resources requesting party's requested resource is occupied, be to perform step S103, otherwise execution step S104.
In step S103, when the described resources requesting party's requested resource of judgement is occupied, judge that described resources requesting party's priority, whether higher than the priority that takies the resource occupation side of described resource, is to perform step S104, otherwise execution step S105.
In embodiments of the present invention, the message bag that basis for estimation of this priority sends from application layer, get.
In step S104, will use the information of described resource to send to described application layer described resources requesting party, and carry out the operation that described resources requesting party uses described resource.
In step S105, when described resources requesting party's priority is when taking the priority of resource occupation side of described resource, resources requesting party is joined in waiting list.
In embodiments of the present invention, when the resource of resources requesting party request is just occupied, and the priority ratio resources requesting party's of resource occupation side priority is high, therefore, resources requesting party cannot seize just occupied resource, drive layer to control this resources requesting party is joined in waiting list, wait for that resource occupation side is used this resource complete.
As one embodiment of the present of invention, resources requesting party's resource use priority is set in application layer in advance, this priority can comprise a plurality of priority, a plurality of resources can adopt the priority of ad eundem, do not repeat them here, but not in order to limit the present invention.
As one embodiment of the present of invention, when described resources requesting party uses described resource, the resources requesting party of judgement in waiting list priority, and the assigned resources requesting party's of the resource after recovering message is sent to described application layer.
As a specific embodiment of the present invention, as shown in Figure 2, take apply A, application B describes as example by same resource, the realization flow that it is concrete:
In step S201, the priority of application A and application B is set in application journey in advance.
In step S202, prepare to open application A, transmission packet is given and is driven layer, and wherein this message bag comprises the resource information of application A information, application A request and the precedence information of application A and application B.
In embodiments of the present invention, above-mentioned two step S201 and S202 realize in application layer.
In step S203, whether judgement application B takies the resource of application A request, if perform step S204, otherwise execution step S208.
In step S204, when application B takies the resource of application A request, whether the priority of judgement application A higher than the priority of application B, if perform step S205, otherwise execution step S207.
In step S205, carry out application A and use described resource, hang up application B, and to application layer transmission, carry out application A and use described resource, hang up the message of application B.
In step S206, when application A being detected, use after resource, carry out the operation that application B continues to use resource, and to application layer, send application A and use resource, carry out the message that application B continues to use the operation of resource.
In step S207, continue to carry out the operation that application B is used resource, and send and continue to carry out the message that application B is used the operation of resource to application layer.
In step S208, carry out the operation that application A is used resource, and send to application layer the message that application A is used resource.
Above are only a specific embodiment of the present invention, at this not in order to limit the present invention.
Fig. 3 shows the structured flowchart of the concurrent processing system of the resource that the embodiment of the present invention provides, for convenience of explanation, in figure, only provided the part relevant to the embodiment of the present invention, wherein, the concurrent processing system of resource can be built in software unit, hardware cell or the software and hardware combining unit of mobile terminal.
Message bag receiver module 11 receives the message bag that application layer sends, and described message bag comprises resources requesting party and resources requesting party's requested resource information; The first judge module 12 judges that whether described resources requesting party's requested resource is occupied; When the described resources requesting party's requested resource of described the first judge module 12 judgement is occupied, the second judge module 13 judges that whether described resources requesting party's priority is higher than the priority that takies the resource occupation side of described resource; When the described resources requesting party's of the second judge module 13 judgement priority is when taking the priority of resource occupation side of described resource, information sending module 14 will be used the information of described resource to send to application layer described resources requesting party, and carries out the operation that described resources requesting party uses described resource; When the described resources requesting party's of described the second judge module 13 judgement priority is when taking the priority of resource occupation side of described resource, waiting list adds module 15 that described resources requesting party is joined in waiting list; When the described resources requesting party's requested resource of described the first judge module 12 judgement is unoccupied, described information sending module 14 will be used the information of described resource to send to described application layer described resources requesting party, and carries out the step that described resources requesting party uses the operation of described resource.
In embodiments of the present invention, priority arranges module 16 resources requesting party's resource use priority is set in application layer in advance.
In embodiments of the present invention, the second information sending module 17 is when described resources requesting party uses described resource, the resources requesting party of judgement in waiting list priority, and the assigned resources requesting party's of the resource after recovering message is sent to described application layer.
Above are only a system embodiment of the present invention, the functional description of its each functional module, as described in above-mentioned embodiment of the method, does not repeat them here, but not in order to limit the present invention.
Receive the message bag that application layer sends; Judge that whether resources requesting party's requested resource is occupied; When judgement resources requesting party requested resource is occupied, judge that whether resources requesting party's priority is higher than the priority that takies the resource occupation side of resource; When resources requesting party's priority is when taking the priority of resource occupation side of resource, be about to use the information of described resource to send to application layer resources requesting party, and carry out the operation that resources requesting party uses resource; When resources requesting party's priority is when taking the priority of resource occupation side of resource, resources requesting party is joined in waiting list; When judgement resources requesting party requested resource is unoccupied; to use the information of resource to send to described application layer resources requesting party; and carry out the step that resources requesting party uses the operation of resource, and be convenient to management and the protection of concurrency conflict, improved the stability of system.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be in being stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (5)

1. a concurrent processing method for resource, is characterized in that, described method comprises the steps:
When application layer is prepared to open application, transmission packet is given and is driven layer;
By driving layer to receive the message bag that application layer sends, described message bag comprises resources requesting party, resources requesting party's requested resource and precedence information;
By driving layer to judge that whether described resources requesting party's requested resource is occupied;
When the described resources requesting party's requested resource of judgement is occupied, by driving layer priority that judges described resources requesting party whether higher than the priority that takies the resource occupation side of described resource;
When described resources requesting party's priority is when taking the priority of resource occupation side of described resource, by driving layer will to use the information of described resource to send to described application layer described resources requesting party, and carry out the operation that described resources requesting party uses described resource;
When described resources requesting party's priority is when taking the priority of resource occupation side of described resource, by driving layer that described resources requesting party is joined in waiting list;
When the described resources requesting party's requested resource of judgement is unoccupied, by driving layer will to use the information of described resource to send to described application layer described resources requesting party, and carry out the step that described resources requesting party uses the operation of described resource;
Wherein, the described priority as described resources requesting party is when taking the priority of resource occupation side of described resource, by driving layer to be about to use the information of described resource to send to described application layer described resources requesting party, and also comprise the steps: after carrying out the step of the operation that described resources requesting party uses described resource
When described resources requesting party uses described resource, by driving the priority of the resources requesting party in layer judgement waiting list, and the assigned resources requesting party's of the resource after recovering message is sent to described application layer.
2. the method for claim 1, is characterized in that, when described application layer is prepared to open application, transmission packet also comprises the steps: before giving the step that drives layer
Resources requesting party's resource use priority is set in application layer in advance.
3. a concurrent processing system for resource, is characterized in that, described system comprises:
Message bag receiver module, for sending to by driving layer to receive when application layer is prepared to open application the message bag that drives layer, described message bag comprises resources requesting party, resources requesting party's requested resource and precedence information;
The first judge module, for judging that by driving layer whether described resources requesting party's requested resource is occupied;
Whether the second judge module, for when described the first judge module judges that described resources requesting party's requested resource is occupied, by driving layer priority that judges described resources requesting party higher than the priority that takies the resource occupation side of described resource;
Information sending module, for the priority that judges described resources requesting party when described the second judge module when taking the priority of resource occupation side of described resource, by driving layer will to use the information of described resource to send to described application layer described resources requesting party, and carry out the operation that described resources requesting party uses described resource; And
Waiting list adds module, for the priority that judges described resources requesting party when described the second judge module when taking the priority of resource occupation side of described resource, by driving layer that described resources requesting party is joined in waiting list;
When described the first judge module judges that described resources requesting party's requested resource is unoccupied, described information sending module will be used the information of described resource to send to described application layer described resources requesting party, and carries out the step that described resources requesting party uses the operation of described resource;
The second information sending module, for when described resources requesting party uses described resource, by driving the priority of the resources requesting party in layer judgement waiting list, and sends to described application layer by the assigned resources requesting party's of the resource after recovering message.
4. system as claimed in claim 3, is characterized in that, described system comprises:
Priority arranges module, for resources requesting party's resource use priority is set in application layer in advance.
5. a mobile terminal that comprises the concurrent processing system of the resource described in claim 3 to 4 any one.
CN201010209423.6A 2010-06-24 2010-06-24 Concurrent processing method and system for resources and mobile terminal Expired - Fee Related CN101883436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010209423.6A CN101883436B (en) 2010-06-24 2010-06-24 Concurrent processing method and system for resources and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010209423.6A CN101883436B (en) 2010-06-24 2010-06-24 Concurrent processing method and system for resources and mobile terminal

Publications (2)

Publication Number Publication Date
CN101883436A CN101883436A (en) 2010-11-10
CN101883436B true CN101883436B (en) 2014-08-20

Family

ID=43055269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010209423.6A Expired - Fee Related CN101883436B (en) 2010-06-24 2010-06-24 Concurrent processing method and system for resources and mobile terminal

Country Status (1)

Country Link
CN (1) CN101883436B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012163241A1 (en) * 2011-05-31 2012-12-06 中兴通讯股份有限公司 Method and apparatus for scheduling ue physical layer resource
CN103002341B (en) * 2011-09-14 2018-05-18 深圳市同洲电子股份有限公司 DTV composite aircraft and resource share method
EP2816857B1 (en) * 2012-04-28 2017-07-12 Huawei Technologies Co., Ltd. Resource operation method and device
CN103338209B (en) * 2013-07-17 2016-05-25 高金铎 The system and method that IP communication system and method, IP communication and common communications coexist
CN103699437B (en) * 2013-12-20 2017-06-06 华为技术有限公司 A kind of resource regulating method and equipment
CN103973690B (en) * 2014-05-09 2018-04-24 北京智谷睿拓技术服务有限公司 Resource access method and resource access device
CN106569892B (en) * 2015-10-08 2020-06-30 阿里巴巴集团控股有限公司 Resource scheduling method and equipment
CN109445950A (en) * 2018-09-30 2019-03-08 青岛海尔科技有限公司 The mutual exclusion access method and system of OCF resource, server-side, medium, equipment
CN110471713A (en) * 2019-08-15 2019-11-19 深圳开立生物医疗科技股份有限公司 A kind of ultrasonic system method for managing resource and device
CN112785323A (en) * 2019-11-07 2021-05-11 北京沃东天骏信息技术有限公司 Resource allocation method and device and electronic equipment
EP4042790A4 (en) * 2019-11-20 2022-11-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Resource pre-emption sidelink communication
CN113839890A (en) * 2020-06-23 2021-12-24 中兴通讯股份有限公司 Resource allocation method, device, server and storage medium
CN111858063A (en) * 2020-07-28 2020-10-30 科大讯飞股份有限公司 Resource competition processing method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1806228A (en) * 2003-06-10 2006-07-19 索尼爱立信移动通信日本株式会社 Resource management method and device, resource management program, and storage medium
WO2009058154A1 (en) * 2007-11-02 2009-05-07 Qualcomm Incorporated Apparatus and methods of configurable system event and resource arbitration management

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1806228A (en) * 2003-06-10 2006-07-19 索尼爱立信移动通信日本株式会社 Resource management method and device, resource management program, and storage medium
WO2009058154A1 (en) * 2007-11-02 2009-05-07 Qualcomm Incorporated Apparatus and methods of configurable system event and resource arbitration management

Also Published As

Publication number Publication date
CN101883436A (en) 2010-11-10

Similar Documents

Publication Publication Date Title
CN101883436B (en) Concurrent processing method and system for resources and mobile terminal
US8706943B2 (en) System for interfacing between a terminal and a smart card, method for same, and smart card applied to same
CN101932068B (en) Realize the mthods, systems and devices of machine-to-machine service
CN100517221C (en) Efficient multiprocessor system and methods thereof
JP6076480B2 (en) Service processing method and apparatus
CN104160771B (en) For running the scheduling request of the wireless communication device of background application
CN104170516A (en) Methods and apparatus for reducing call drop rate
CN102857999A (en) Multimode terminal and service implementation method for multimode terminal
CN101668315B (en) Method and device for operating network elements of different protocol versions
CN102340734A (en) Positioning application management method and device
CN103019854A (en) Distributed dynamic process management method and system
CN1509037A (en) Disconnect-time implementation while communicating with wireless apparatus having instantaneous network address
US9210718B2 (en) Method and apparatus for improving transmission resource utilization
CN110662191B (en) Communication mode selection method and device and electronic equipment
CN109286979A (en) A kind of resource allocation methods, device and terminal
CN103701692A (en) Message forwarding method, system and server
WO2023035834A1 (en) Wi-fi direct communication method and apparatus
CN102857574A (en) Information processing method and apparatus for Internet of Things
CN102984089A (en) Method and device for traffic management and scheduling
CN104657326A (en) Double-CPU communication method and system and system-on-chip chip
US20150135269A1 (en) Method and system for sharing applications among a plurality of electronic devices
CN106851535B (en) Method and device for sharing Bluetooth by multiple systems
CN115623057A (en) RDMA (remote direct memory Access) -based connection establishing method, device, equipment and storage medium
CN107273082A (en) Display methods, device, terminal and the storage medium of image
CN110831074A (en) Direct communication method, AMF, access network functional entity and computer storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140820

Termination date: 20210624

CF01 Termination of patent right due to non-payment of annual fee