CN110334823A - Reserving method, device, electronic equipment and medium - Google Patents
Reserving method, device, electronic equipment and medium Download PDFInfo
- Publication number
- CN110334823A CN110334823A CN201910520332.5A CN201910520332A CN110334823A CN 110334823 A CN110334823 A CN 110334823A CN 201910520332 A CN201910520332 A CN 201910520332A CN 110334823 A CN110334823 A CN 110334823A
- Authority
- CN
- China
- Prior art keywords
- reservation
- time point
- reserve requests
- resource
- application
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000012545 processing Methods 0.000 claims description 10
- 238000001514 detection method Methods 0.000 abstract description 12
- 238000005516 engineering process Methods 0.000 abstract description 9
- 230000001133 acceleration Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 9
- 230000002093 peripheral effect Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 239000000284 extract Substances 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000004927 fusion Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 239000000919 ceramic Substances 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000007599 discharging Methods 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000001052 transient effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000000712 assembly Effects 0.000 description 1
- 238000000429 assembly Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 230000006698 induction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- GOLXNESZZPUPJE-UHFFFAOYSA-N spiromesifen Chemical compound CC1=CC(C)=CC(C)=C1C(C(O1)=O)=C(OC(=O)CC(C)(C)C)C11CCCC1 GOLXNESZZPUPJE-UHFFFAOYSA-N 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2308—Concurrency control
- G06F16/2336—Pessimistic concurrency control approaches, e.g. locking or multiple versions without time stamps
- G06F16/2343—Locking methods, e.g. distributed locking or locking implementation details
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/02—Reservations, e.g. for tickets, services or events
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/20—Education
- G06Q50/205—Education administration or guidance
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Tourism & Hospitality (AREA)
- Strategic Management (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Educational Technology (AREA)
- Marketing (AREA)
- Human Resources & Organizations (AREA)
- Educational Administration (AREA)
- Databases & Information Systems (AREA)
- Development Economics (AREA)
- Data Mining & Analysis (AREA)
- Operations Research (AREA)
- General Engineering & Computer Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Quality & Reliability (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
This application discloses a kind of reserving method, device, electronic equipment and media.Wherein, in the application, after obtaining the first reserve requests for being directed to target user, it can be based on the subscription time point and reservation object carried in the first reserve requests, locking operation is carried out using distributed lock in the database of distributed deployment, and when detecting locking operation success, the first reserve requests are based on, are reserved for target user.It by the technical solution of application the application, can use in distributed data base, whether successful operation locked using distributed lock by the Energy Resources Service of giving lessons of the corresponding reservation object of detection and subscription time point, it is determined whether reserve for target user.So as to avoid the problem that needing in the related technology manually reserving for each user and the inefficiency that occurs.
Description
Technical field
Image processing techniques involved in the application, especially a kind of reserving method, device, electronic equipment and medium.
Background technique
With the development of society, more and more people can select to learn various knowledge constantly to expand oneself.Its
In, it is required to both sides since traditional students and teacher gives lessons face-to-face and on the way takes a substantial amount of time and energy.Therefore, with
The development of communication era, online teaching received by vast user.
Further, before student is by online teaching learning knowledge, it is needed to carry out in advance in systems first about
Class, to determine who teacher when oneself following complete guidance of giving lessons.Backstage between receiving user terminal for about class hour with
And after the reservation instruction of course types, the course of corresponding teacher is distributed in the corresponding period for this student.
However, existing about class mode is after system receives the about class request of user, by manually according to its selection
Time and object are the corresponding about class of user, but when receiving a large amount of about classes in the short time and requesting, and are easy to appear leakage asking about
Topic.
Summary of the invention
The embodiment of the present invention provides a kind of reserving method, device, electronic equipment and medium.
Wherein, according to the one aspect of the embodiment of the present application, a kind of reserving method for providing characterized by comprising
The first reserve requests for being directed to target user are obtained, carry corresponding subscription time in first reserve requests
Point and reservation object;
Based on the subscription time point and reservation object, carried out in the database of distributed deployment using distributed lock
Locking operation;
When detecting locking operation success, first reserve requests are based on, are carried out for the target user pre-
About.
Optionally, in another embodiment based on the application above method, it is described based on the subscription time point with
And reservation object, locking operation is carried out using distributed lock in the database of distributed deployment, comprising:
Based on the subscription time point and reservation object, determine in the database, in the reservation object
It gives lessons resource, the resource of giving lessons is resource of giving lessons corresponding with the subscription time point;
Locking operation is carried out using the distributed lock in the resource of giving lessons.
Optionally, in another embodiment based on the application above method, distribution is utilized in the resource of giving lessons
Formula lock carries out after the locking operation, further includes:
When detecting the locking operation success for the resource of giving lessons, the identification number for resource of giving lessons described in acquisition, institute
It states identification number and has been locked for characterizing the resource of giving lessons;
The identification number is recorded in subscription list;
It is got in the first preset time period after being reserved for the target user when carrying the reservation
Between point, and/or, when the second reserve requests of the reservation object, based on the subscription list, to second reserve requests
It is handled.
Optionally, in another embodiment based on the application above method, distribution is utilized in the resource of giving lessons
Formula lock carries out after the locking operation, further includes:
When detecting using distributed lock locking operation success, the target is added in the resource of giving lessons and uses
The teaching mark information at family, the teaching mark information is for extracting religion of the target user in the e- Learning
Learn information;
Based on first reserve requests, reserved for the target user;
After detecting and reserve successfully for the target user, reservation successful information is generated, described reserve successfully is believed
The teaching mark information is carried in breath;
After the second preset time period for generating the reservation successful information, the teaching mark information will be carried
The reservation successful information is sent to the reservation object.
Optionally, in another embodiment based on the application above method, it is described based on the subscription time point with
And reservation object, locking operation is carried out using distributed lock in the database of distributed deployment, comprising:
Pass through when the third period, release the target distribution formula lock, the third period is based on the subscription time
Point determines.
Optionally, in another embodiment based on the application above method, described based on the described first pre- invitation
It asks, after being reserved for the target user, further includes:
It detects the reservation object and is reserved number in the 4th preset time period, the 4th preset time period is packet
Containing the period including the preset time point;
When being reserved number described in the determination more than preset threshold, the taboo about information for the reservation object, institute are generated
Taboo about information is stated for prompting reservation object described in user that can not be reserved in the 4th preset time period.
According to the other side of the embodiment of the present application, a kind of device for displaying predetermined for providing, comprising:
Module is obtained, is arranged to obtain the first reserve requests for being directed to target user, be taken in first reserve requests
With corresponding subscription time point and reservation object;
Module is locked, be arranged to based on the subscription time point and reserves object, in the database of distributed deployment
It is middle to carry out locking operation using distributed lock;
Reservation module is arranged to first reserve requests are based on, for institute when detecting locking operation success
Target user is stated to reserve.
According to the another aspect of the embodiment of the present application, a kind of electronic equipment that provides, comprising:
Memory, for storing executable instruction;And
It is any of the above-described described pre- to complete to execute the executable instruction for showing with the memory for display
The about operation of method.
According to the still another aspect of the embodiment of the present application, a kind of computer readable storage medium provided, based on storing
The instruction that calculation machine can be read, described instruction are performed the operation for executing any of the above-described reserving method.
It, can be based in the first reserve requests after obtaining the first reserve requests for being directed to target user in the application
The subscription time point and reservation object of carrying, carry out locking operation using distributed lock in the database of distributed deployment,
And when detecting locking operation success, the first reserve requests are based on, are reserved for target user.Pass through application the application's
Technical solution can use in distributed data base, pass through the resource of giving lessons of the corresponding reservation object of detection and subscription time point
Whether place locks successful operation using distributed lock, it is determined whether reserves for target user.So as to avoid correlation
Needed in technology manually for each user reserve and occur inefficiency the problem of.
Below by drawings and examples, the technical solution of the application is described in further detail.
Detailed description of the invention
The attached drawing for constituting part of specification describes embodiments herein, and together with description for explaining
The principle of the application.
The application can be more clearly understood according to following detailed description referring to attached drawing, in which:
Fig. 1 is a kind of schematic diagram for reserving method that the application proposes;
Fig. 2 is the schematic diagram for another reserving method that the application proposes;
Fig. 3 is the schematic diagram for another reserving method that the application proposes;
Fig. 4 is the structural schematic diagram of the application device for displaying predetermined.
Fig. 5 is that the application shows electronic devices structure schematic diagram.
Specific embodiment
The various exemplary embodiments of the application are described in detail now with reference to attached drawing.It should also be noted that unless in addition having
Body explanation, the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally
The range of application.
Simultaneously, it should be appreciated that for ease of description, the size of various pieces shown in attached drawing is not according to reality
Proportionate relationship draw.
Be to the description only actually of at least one exemplary embodiment below it is illustrative, not as to the application and
Its any restrictions applied or used.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable
In the case of, the technology, method and apparatus should be considered as part of specification.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
It is to be appreciated that the directional instruction (such as up, down, left, right, before and after ...) of institute is only used in the embodiment of the present application
In explaining in relative positional relationship, the motion conditions etc. under a certain particular pose (as shown in the picture) between each component, if should
When particular pose changes, then directionality instruction also correspondingly changes correspondingly.
In addition, the description for being such as related to " first ", " second " in this application is used for description purposes only, and should not be understood as
Its relative importance of indication or suggestion or the quantity for implicitly indicating indicated technical characteristic.Define as a result, " first ",
The feature of " second " can explicitly or implicitly include at least one of the features.In the description of the present application, " multiples' " contains
Justice is at least two, such as two, three etc., unless otherwise specifically defined.
In this application unless specifically defined or limited otherwise, term " connection ", " fixation " etc. shall be understood in a broad sense,
For example, " fixation " may be a fixed connection, it may be a detachable connection, or integral;It can be mechanical connection, be also possible to
Electrical connection;It can be directly connected, the connection inside two elements or two can also be can be indirectly connected through an intermediary
The interaction relationship of a element, unless otherwise restricted clearly.It for the ordinary skill in the art, can basis
Concrete condition understands the concrete meaning of above-mentioned term in this application.
It in addition, the technical solution between each embodiment of the application can be combined with each other, but must be general with this field
Based on logical technical staff can be realized, it will be understood that when the combination of technical solution appearance is conflicting or cannot achieve this
The combination of technical solution is not present, also not this application claims protection scope within.
It is described below with reference to Fig. 1 to Fig. 3 according to the application illustrative embodiments for carrying out reserving method.It needs
It is noted that following application scenarios are merely for convenience of understanding spirit herein and principle and showing, the embodiment party of the application
Formula is unrestricted in this regard.On the contrary, presently filed embodiment can be applied to applicable any scene.
The application also proposes a kind of reserving method, device, target terminal and medium.
Fig. 1 schematically shows a kind of flow diagram of reserving method according to the application embodiment.Such as Fig. 1 institute
To show, this method is applied in e- Learning, including:
S101 obtains the first reserve requests for being directed to target user, when carrying corresponding reservation in the first reserve requests
Between put and reservation object.
Firstly the need of explanation, in the application, the equipment for obtaining the first reserve requests is not specifically limited, for example,
The application can obtain the first reserve requests by smart machine, can also obtain the first reserve requests by server.
In addition, not being specifically limited to smart machine in the application, i.e., smart machine can be arbitrary smart machine,
For example, mobile phone, electronic memo, PDA etc..
Wherein, the first reserve requests in the application are used in e- Learning, and user reserves before giving lessons
Another party user of process of giving lessons is completed therewith.Wherein, the application does not do specifically the target user for generating the first reserve requests
It limits.Such as target user can be the student in e- Learning, so that the student passes through the first reserve requests, to therewith
The teacher of process of completing to give lessons reserves.Again or, target user may be the teacher in e- Learning, so that this is old
Teacher is reserved to the student for process of completing to give lessons therewith by the first reserve requests.Again or, target user can also be network
Administrative staff in online education, so that the administrative staff are by the first reserve requests, it is complete with the corresponding student of realization and teacher
At being reserved for the purpose of giving lessons.
Optionally, subscription time point and the reservation pair of target user's generation are carried in the first reserve requests of the application
As.It should be understood that the application is not specifically limited subscription time point and reservation object.Such as subscription time point can be
Some day, or a certain minute etc..
S102, based on subscription time point and reservation object, in the database of distributed deployment using distributed lock into
Row locking operation.
In the application, can after getting the first reserve requests, based on the subscription time point carried in reserve requests with
And reservation object, locking operation is carried out using distributed lock in the database of distributed deployment.Further, the application is not right
The database of distributed deployment is specifically limited, such as can be buffer type database, such as Redis storage system (REmote
DIctionary Server), Memcached distributed cache system and Tair structured data storage system etc..Again
Or, or ZooKeeper distributed service framework system.
Optionally, distributed lock is a kind of mode for controlling synchronization of access shared resource between distributed system.The application
In can be prevented by the alternative of distributed lock it is interfering with each other guarantee consistency, to reach in distributed system environment
Under, a reservation object can only be executed in the same time by a thread of a machine.That is, the application can basis
The subscription time point and reservation object of target user's input, using distributed lock to reservation in the database of distributed deployment
The subscription time point of object carries out locking operation.
Further alternative, the distributed lock in the application can be locked for the acquisition lock of High Availabitity with release, should have
Characteristic and lock inefficacy mechanism can be reentried, to avoid the Deadlock being easy to appear when locking in distributed type assemblies.
In addition, should include that each reservation object is corresponding gives lessons in the database of the distributed deployment in the application
Resource or position.Wherein, at give lessons resource or the position of each reservation object, with the different periods, should also have corresponding
Son is given lessons resource or sub- position.It should be understood that reservation object can both be taught online by taking target user is student as an example for network
Teacher in educating.Since a teacher can put more processes of giving lessons of completion, i.e., such as teacher A in different times on the same day
Can between 9:00-10:00 on the same day, between 10:00-11:00, between 14:00-15:00, between 15:00-16:00,
5 are completed between 16:00-17:00 to give lessons.Then in distributed data base, there should be the resource A that gives lessons of corresponding teacher A, and
In giving lessons under resource A for teacher A, the son for respectively corresponding the 9:00-10:00 period is given lessons resource 1,10:00-11:00 time
The son of section give lessons resource 3, the son of 15:00-16:00 period of resource 2, the son of 14:00-15:00 period of giving lessons is given lessons resource
4, the son of 16:00-17:00 period is given lessons resource 5.With guarantee can be sharp in distributed data base each of Energy Resources Service of giving lessons
Locking operation is carried out with distributed lock.
S103 is based on the first reserve requests when detecting locking operation success, reserves for the target user.
Optionally, it is being based on subscription time point and reservation object in the application, it is sharp in the database of distributed deployment
After carrying out locking operation with distributed lock, the successful of locking operation can be further detected.Due to the work of distributed lock
With for that can guarantee under distributed system environment, a business can only be held in the same time by a thread of a machine
Row.That is, if reserving object when being reserved by other users on subscription time point, the money of giving lessons at the time point
Occupied by the corresponding distributed lock of reserve requests that source then can have been generated by other users, so as to cause can not be in the money of giving lessons
It is locked at source or position.
Further, when detecting locking operation success, it is right on changing subscription time point that no other users are represent
Reservation object carried out reservation.Therefore, the application can after detecting locking operation success, generated based on target user the
One reserve requests are reserved for target user.Wherein, the application is not specifically limited the first reserve requests, such as user
Course types, course grade, course, course quantity etc. can be inputted in reserve requests.
It, can be based in the first reserve requests after obtaining the first reserve requests for being directed to target user in the application
The subscription time point and reservation object of carrying, carry out locking operation using distributed lock in the database of distributed deployment,
And when detecting locking operation success, the first reserve requests are based on, are reserved for target user.Pass through application the application's
Technical solution can use in distributed data base, pass through the resource of giving lessons of the corresponding reservation object of detection and subscription time point
Whether place locks successful operation using distributed lock, it is determined whether reserves for target user.So as to avoid correlation
Needed in technology manually for each user reserve and occur inefficiency the problem of.
It is further alternative, in a kind of embodiment of the application, in S102 (based on subscription time point and reservation pair
As carrying out locking operation using distributed lock in the database of distributed deployment) in, it further include a kind of specific embodiment party
Formula, as shown in Figure 2, comprising:
S201 obtains the first reserve requests for being directed to target user.
S202 is determined in database based on subscription time point and reservation object, for the money of giving lessons in reservation object
Source, resource of giving lessons are resource of giving lessons corresponding with subscription time point.
Optionally, in the database of the distributed deployment in the application, should have each in e- Learning
The corresponding resource of giving lessons of a reservation object.For example, when including 3 teachers and 5 in the system of some e- Learning
When student, then should have 3 teachers in the database respectively and the corresponding user of 5 students gives lessons resource.Likewise,
Each user, which gives lessons, should also be as having each course corresponding course time point respectively under resource.It should be understood that each class
Journey time point corresponds to each subscription time point.
S203 carries out locking operation using distributed lock in resource giving lessons.
It further, include the corresponding resource A, teacher of giving lessons of teacher's first such as in the database of distributed deployment
The corresponding resource B that gives lessons of second, teacher third be corresponding to give lessons resource C and the corresponding resource 1 of giving lessons of student's fourth, student defend correspondence
Resource 2 of giving lessons, the pungent corresponding resource 3 of giving lessons of student.When receive target user student's fourth generation carry subscription time
Point is 2019.6.6 days 10:00, when reservation object is the first reserve requests of teacher's first.Pass through the subscription time point and reservation
Object determines that the resource of giving lessons in database is the resource A that gives lessons.Further, the application can be sharp on the resource A that gives lessons
Locking operation is carried out with distributed lock.
The religion of target user is added when detecting using the success of distributed lock locking operation in S204 in resource of giving lessons
Mark information is learned, teaching mark information is for extracting education informations of the target user in e- Learning.
Optionally, the application give lessons in resource using distributed lock carry out locking operation after, can further exist
When detecting locking operation success, the teaching mark information for being directed to subscriber is added in resource giving lessons.It wherein needs to illustrate
, when detect give lessons the utilization of resources distributed lock locking operation success when, since distributed lock has the same time
Can only be by an occupied characteristic of thread, therefore then represent the reservation object and do not used by other on the subscription time point
It is reserved at family.Further, the application can be added corresponding for extracting target user's education informations in the resource of giving lessons
Teaching mark information so that it is subsequent reservation object receive the successful notification message of reservation of target user after, Ke Yigen
The corresponding education informations of subscriber are directly acquired according to the teaching mark information.So as to understand the target user in advance, with
Reach efficiency of more preferably giving lessons when just at school.
Further, the application is not specifically limited teaching mark information, such as teaching mark information can be use
Required teaching material information when extracting the target user and carrying out course, teaching mark information may be to use for extracting the target
Teaching when family history carries out course records information etc..As long as it should be understood that the teaching mark information is for extracting mesh
Mark the mark of education informations of the user in e- Learning.
S205 is based on the first reserve requests, reserves for target user.
S206 generates reservation successful information, reserves in successful information after detecting and reserve successfully for target user
Carry teaching mark information.
S207 will carry the pre- of teaching mark information after the second preset time period for generating reservation successful information
About successful information is sent to reservation object.
Optionally, the application can will carry the pre- of teaching mark information after reserve successfully for target user
About successful information is sent to reservation object.So that reservation object knows that itself will be in subscription time according to the reservation successful information
It gives lessons on point the target user.At the same time, since the application is applied in e- Learning field, i.e. reservation pair
As being process of being given lessons by telecommunication completion with subscriber, thus it is object (such as teacher) and pre- in order to avoid occurring reserving
About user (such as student) because of state of not meeting caused by do not know about mutually so that the not high problem of efficiency of teaching.In the application
Reserving object can also extract and use about target according to the teaching mark information for the target user in reservation successful information
The education informations at family.So that in teaching process of the Cheng Qian to the target user of giving lessons, character personality, teaching weak spot etc. is
Understand, to targetedly dispose course teaching direction, and then improves efficiency of teaching.
It should be noted that not done to reservation object according to the position that teaching mark information extracts education informations in the application
It is specific to limit.Such as reservation object can extract corresponding teaching according to teaching mark information in corresponding information database
Information.Reservation object can also extract corresponding education informations according to the teaching mark information in the database.
S208 obtains the identification number for resource of giving lessons, identification number when detecting the locking operation success for resource of giving lessons
It has been locked for characterizing resource of giving lessons.
Further alternative, the application is after detecting for the locking operation success for resource of giving lessons, in addition to can be generated
Except the reservation successful information for carrying teaching mark information, the identification number of the resource of giving lessons can also be further obtained.Its
In, the identification number of the resource of giving lessons can be used for characterizing resource of giving lessons and lock, that is to say, that the reservation object is in the reservation
Between point on reserved by other subscribers.
Identification number is recorded in subscription list by S209.
S210 gets in the first preset time period after reserving for target user and carries subscription time
Point, and/or, when reserving the second reserve requests of object, based on subscription list, the second reserve requests are handled.
Optionally, pre- by other on some subscription time point in order to avoid there is some reservation object in the application
It is still repeatedly upper at the time point to the reservation object wasted brought by locking operation in the case that about user reserves
The problem of resource.In the application, it can be detected again in the first preset time period after being reserved for target user
It receives about the subscription time point, and/or, it, can not be directly in distributed deployment when reserving the second reserve requests of object
Database in carry out carrying out resource of giving lessons locking operation using distributed lock, but the pre-generated reservation of inquiry first
List, and according to query result, the second reserve requests are handled.
Further, when inquiring in list there are when the identification number for resource of giving lessons, then determine according to subscription list
The reservation object is reserved on some subscription time point by other users.Further, continue to inquire resource of giving lessons
The corresponding subscription time point of identification number.It is appreciated that when being detected in the second reserve requests according to the identification number of the resource of giving lessons
Reservation object and subscription time point reservation object corresponding with identification number and when consistent subscription time point, it is determined that should
Reservation object has been reserved on the subscription time point.The judgement information that can not be reserved is generated in turn.Likewise, when being awarded according to this
The identification number of class resource detects reservation object and the reservation corresponding with identification number of subscription time point in the second reserve requests
When object and inconsistent subscription time point, it is determined that the reservation object is not reserved on the subscription time point.And then basis
Second reserve requests are reserved for corresponding user.
It should be noted that the subscription list in the application has the time limit, i.e., after the completion of reserving course, the reservation
List then needs to update to guarantee to handle newest reserve requests.Such as it can update and update primary or January for one week
Once.Further, in order to avoid being to occur after target user reserves repeatedly according to according to the first reserve requests
The drawbacks of subscription list handles the second reserve requests receives in the application after reserving for target user
When two reserve requests, can detect whether second reserve requests are first pre- after reserving for target user first
If the reserve requests received in the period.And after determination, based on subscription list, the second reserve requests are handled.
Optionally, the first preset time period is not specifically limited in the application, such as can is 7 days, or 30
It.
It, can be based in the first reserve requests after obtaining the first reserve requests for being directed to target user in the application
The subscription time point and reservation object of carrying, Energy Resources Service of giving lessons in the database carry out locking operation using distributed lock,
And after successfully reserving for target user, the teaching mark information of target user is added in reservation successful information.Pass through application
The technical solution of the application can utilize distributed lock in the Energy Resources Service of giving lessons of the corresponding reservation object of detection and subscription time point
After locking successfully, the teaching mark information of target user is added in the reservation successful information of notice reservation object, so that reservation
Object obtains the education informations of target user according to the mark information.So as to avoid in the related technology, e- Learning
Ability of Normal School Students is mutually unfamiliar with the bad problem of caused efficiency of teaching.
It is further alternative, in one of embodiment of the application, in S102 (based on subscription time point and in advance
About object carries out locking operation using distributed lock in the database of distributed deployment) in, it further include a kind of specific implementation
Mode, as shown in Figure 3, comprising:
S301 obtains the first reserve requests for being directed to target user.
S302 obtains target distribution formula lock;
S303 passes through when the third period, releases target distribution formula lock, and the third period is determined based on subscription time point.
Optionally, can also be after the first reserve requests for obtaining target user in the application, it can be by target
One is arranged on distributed lock for discharging the timer of target distribution formula lock over time, become to realize in third
Between after Duan Jing, release target distribution formula lock.It should be understood that being anti-in the purpose that target distribution formula locks setting timer
Only due to failure, caused by the reasons such as conflict, distributed lock lock always reserve object caused by giving lessons in resource can not
Continue the problem of being reserved.For example, when reserving object after 10:00 and target user complete to give lessons process, due to the system failure
Etc. reasons cause the distributed lock of corresponding resource of giving lessons at 10 points being located in the reservation object not to be released automatically, thus
Will appear reservation object, corresponding resource location of giving lessons can not be locked by other distributed locks again at 10 points always.Namely
It says, reservation object can not be reserved in 10 periods of remaining day by other users always.Therefore, can divide in the application
One is added in cloth lock for discharging the timer of target distribution formula lock after third preset time period, so that the distribution
Lock discharges the distributed lock after third preset time period automatically.To avoid the resource of giving lessons occupied always.
Further, the third preset time period in the application can be the period obtained based on subscription time point.Example
Such as, when preset time point be distance obtain target distribution formula lock when time point difference 24 it is small in the case of, when third is preset
Between section a length of 24 hours periods when can be.To guarantee that the target can be discharged automatically after reaching subscription time point
Distributed lock.Again or, in the case that preset time point is particular point in time (when for example, 2019.6.6 days 10:00), third
When preset time period is also possible to it is a length of from obtain target distribution formula lock (when for example, 2019.6.5 day 18:00), distance in advance
If the period (instant a length of 15 hours periods) before 1 hour time point.The application, which does not do third preset time period, to be had
Body limits.
S304 utilizes target distribution formula based on subscription time point and reservation object in the database of distributed deployment
Lock carries out locking operation.
S305 is based on the first reserve requests when detecting locking operation success, reserves for the target user.
S306, detection reservation object are reserved number in the 4th preset time period, the 4th preset time period be comprising
Period including preset time point.
Optionally, in order to avoid in e- Learning, same reservation object is led by largely reservation in a short time
The not high problem of the efficiency of teaching of cause.It can also be that reservation object carries out the corresponding time for the first reserve requests in the application
After point reservation, further detects the reservation object and be reserved number in the 4th preset time period.
It should be noted that the application is not specifically limited the 4th preset time period.Such as the 4th preset time period can
Think 1 day, the 4th preset time period may be 1 week.Wherein, the 4th preset time period be comprising including preset time point when
Between section.
S307, when determining that generation is directed to the taboo about information of reservation object when being reserved number more than preset threshold, taboo is about believed
Breath can not be reserved in the 4th preset time period for prompting user to reserve object.
It should be understood that being reserved number in the 4th preset time period in detection reservation object in the application, and really
When fixed this is reserved number more than preset threshold, generating prompt user's reservation object can not be reserved in the 4th preset time period
Taboo about information.So that in the reserve requests that the subsequently received other users about the reservation object generate, according to this its
The time relationship of the subscription time point and the 4th preset time period of his reserve requests decides whether to generate other reserve requests
User show the taboo about information of the reservation object.It should be understood that the subscription time point when other reserve requests is included in
When the 4th preset time segment limit, then the taboo about information for the reservation object is directly shown to corresponding user.
Explanation is also needed, the application is not specifically limited preset threshold, such as preset threshold can be 10 times,
Preset threshold may be 5 times.
It, can be based in the first reserve requests after obtaining the first reserve requests for being directed to target user in the application
The subscription time point and reservation object of carrying, Energy Resources Service of giving lessons in the database carry out locking operation using distributed lock,
And after successfully being reserved for target user, detect reservation object within a preset period of time when being reserved number more than threshold value,
Generate the notice that reservation object can not be reserved within a preset period of time.By the technical solution of application the application, can examine
Measure reservation object within a preset period of time when being reserved number more than threshold value, forbid other users again to reservation object into
Row reservation.So as to avoid in the related technology, same reservation object in a short time imitate by the teaching caused by a large amount of reservations
The not high problem of rate.
In another embodiment of the application, as shown in figure 4, the application also provides a kind of device for displaying predetermined, the dress
It sets including obtaining module 401, locks module 402, reservation module 403, wherein
Module 401 is obtained, is arranged to obtain the first reserve requests for being directed to target user, in first reserve requests
Carry corresponding subscription time point and reservation object;
Module 402 is locked, be arranged to based on the subscription time point and reserves object, in the data of distributed deployment
Locking operation is carried out using distributed lock in library;
Reservation module 403 is arranged to be based on first reserve requests when detecting locking operation success,
It is reserved for the target user.
It, can be based in the first reserve requests after obtaining the first reserve requests for being directed to target user in the application
The subscription time point and reservation object of carrying, carry out locking operation using distributed lock in the database of distributed deployment,
And when detecting locking operation success, the first reserve requests are based on, are reserved for target user.Pass through application the application's
Technical solution can use in distributed data base, pass through the resource of giving lessons of the corresponding reservation object of detection and subscription time point
Whether place locks successful operation using distributed lock, it is determined whether reserves for target user.So as to avoid correlation
Needed in technology manually for each user reserve and occur inefficiency the problem of.
Optionally, in the another embodiment of the application, module 402 is locked, further includes determination unit, locked single
Member, in which:
Determination unit is arranged to based on the subscription time point and reserves object, determines in the database, for
Resource of giving lessons in the reservation object, the resource of giving lessons is resource of giving lessons corresponding with the subscription time point;
Unit is locked, is arranged in the resource of giving lessons carry out locking operation using the distributed lock.
In the another embodiment of the application, module 402 is locked, further includes detection unit, recording unit, processing
Unit, in which:
Detection unit is arranged to award described in acquisition when detecting the locking operation success for the resource of giving lessons
The identification number of class resource, the identification number have been locked for characterizing the resource of giving lessons;
Recording unit is arranged to for the identification number being recorded in subscription list;
Processing unit is arranged to get in the first preset time period after reserving for the target user
The subscription time point is carried, and/or, it is right based on the subscription list when the second reserve requests of the reservation object
Second reserve requests are handled.
In the another embodiment of the application, module 402 is locked, further includes adding unit, transmission unit generates
Unit, in which:
Adding unit is arranged to when detecting using distributed lock locking operation success, in the money of giving lessons
The teaching mark information of the target user is added in source, the teaching mark information is for extracting the target user described
Education informations in e- Learning;
Appointment unit is arranged to reserve based on first reserve requests for the target user;
Generation unit is arranged to after detecting and reserve successfully for the target user, and generation, which is reserved, successfully to be believed
It ceases, carries the teaching mark information in the reservation successful information;
Transmission unit is arranged to after the second preset time period for generating the reservation successful information, will carry
The reservation successful information of the teaching mark information is sent to the reservation object.
In the another embodiment of the application, module 402 is locked, further includes acquiring unit, releasing unit, in which:
Acquiring unit is arranged to obtain target distribution formula lock;
Releasing unit is arranged to that timer is added in target distribution formula lock, and the timer is used in third
The target distribution formula lock is discharged after preset time period, the third preset time period is to obtain based on the subscription time point
Period;
Unit is locked, be arranged to based on the subscription time point and reserves object, in the database of distributed deployment
Middle locked using the target distribution formula carries out locking operation.
In the another embodiment of the application, further include, detection module, in which:
Detection module is arranged to detect the reservation object and is reserved number in the 4th preset time period, described
4th preset time period is to include the period including the preset time point;
Detection module when being arranged to be reserved number described in determination more than preset threshold, generates and is directed to the reservation
The taboo of object about information, reservation object can not in the 4th preset time period for prompting described in user for the taboo about information
It is reserved.
Fig. 5 is the logical construction block diagram of a kind of electronic equipment shown according to an exemplary embodiment.For example, electronic equipment
500 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, and medical treatment is set
It is standby, body-building equipment, personal digital assistant etc..
Referring to Fig. 5, electronic equipment 500 may include following one or more components: processor 501 and memory 502.
Processor 501 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place
Reason device 501 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field-
Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed
Logic array) at least one of example, in hardware realize.Processor 501 also may include primary processor and coprocessor, master
Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing
Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.?
In some embodiments, processor 501 can be integrated with GPU (Graphics Processing Unit, image processor),
GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 501 can also be wrapped
AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning
Calculating operation.
Memory 502 may include one or more computer readable storage mediums, which can
To be non-transient.Memory 502 may also include high-speed random access memory and nonvolatile memory, such as one
Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 502 can
Storage medium is read for storing at least one instruction, at least one instruction performed by processor 501 for realizing this Shen
Please in embodiment of the method provide interaction special efficacy scaling method.
In some embodiments, electronic equipment 500 is also optional includes: peripheral device interface 503 and at least one periphery
Equipment.It can be connected by bus or signal wire between processor 501, memory 502 and peripheral device interface 503.It is each outer
Peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface 503.Specifically, peripheral equipment includes: to penetrate
At least one in frequency circuit 504, touch display screen 505, camera 506, voicefrequency circuit 507, positioning component 508 and power supply 509
Kind.
Peripheral device interface 503 can be used for I/O (Input/Output, input/output) is relevant outside at least one
Peripheral equipment is connected to processor 501 and memory 502.In some embodiments, processor 501, memory 502 and peripheral equipment
Interface 503 is integrated on same chip or circuit board;In some other embodiments, processor 501, memory 502 and outer
Any one or two in peripheral equipment interface 503 can realize on individual chip or circuit board, the present embodiment to this not
It is limited.
Radio circuit 504 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.It penetrates
Frequency circuit 504 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 504 turns electric signal
It is changed to electromagnetic signal to be sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 504 wraps
It includes: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, codec chip
Group, user identity module card etc..Radio circuit 504 can be carried out by least one wireless communication protocol with other terminals
Communication.The wireless communication protocol includes but is not limited to: Metropolitan Area Network (MAN), each third generation mobile communication network (2G, 3G, 4G and 5G), wireless office
Domain net and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, radio circuit 504 may be used also
To include the related circuit of NFC (Near Field Communication, wireless near field communication), the application is not subject to this
It limits.
Display screen 505 is for showing UI (User Interface, user interface).The UI may include figure, text, figure
Mark, video and its their any combination.When display screen 505 is touch display screen, display screen 505 also there is acquisition to show
The ability of the touch signal on the surface or surface of screen 505.The touch signal can be used as control signal and be input to processor
501 are handled.At this point, display screen 505 can be also used for providing virtual push button and/or dummy keyboard, also referred to as soft button and/or
Soft keyboard.In some embodiments, display screen 505 can be one, and the front panel of electronic equipment 500 is arranged;In other realities
It applies in example, display screen 505 can be at least two, be separately positioned on the different surfaces of electronic equipment 500 or in foldover design;?
In still other embodiments, display screen 505 can be flexible display screen, is arranged on the curved surface of electronic equipment 500 or folds
On face.Even, display screen 505 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 505 can be adopted
With LCD (Liquid Crystal Display, liquid crystal display), (Organic Light-Emitting Diode, has OLED
Machine light emitting diode) etc. materials preparation.
CCD camera assembly 506 is for acquiring image or video.Optionally, CCD camera assembly 506 include front camera and
Rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.One
In a little embodiments, rear camera at least two is main camera, depth of field camera, wide-angle camera, focal length camera shooting respectively
Any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide-angle
Camera fusion realizes that pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are clapped
Camera shooting function.In some embodiments, CCD camera assembly 506 can also include flash lamp.Flash lamp can be monochromatic warm flash lamp,
It is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for not
With the light compensation under colour temperature.
Voicefrequency circuit 507 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and will
Sound wave, which is converted to electric signal and is input to processor 501, to be handled, or is input to radio circuit 504 to realize voice communication.
For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of electronic equipment 500 to be multiple.
Microphone can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 501 or radio frequency will to be come from
The electric signal of circuit 504 is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramics loudspeaking
Device.When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, can also be incited somebody to action
Electric signal is converted to the sound wave that the mankind do not hear to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 507 can be with
Including earphone jack.
Positioning component 508 is used for the current geographic position of Positioning Electronic Devices 500, to realize navigation or LBS (Location
Based Service, location based service).Positioning component 508 can be the GPS (Global based on the U.S.
Positioning System, global positioning system), the dipper system of China, Russia Gray receive this system or European Union
The positioning component of Galileo system.
Power supply 509 is used to be powered for the various components in electronic equipment 500.Power supply 509 can be alternating current, direct current
Electricity, disposable battery or rechargeable battery.When power supply 509 includes rechargeable battery, which can support wired
Charging or wireless charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, electronic equipment 500 further includes having one or more sensors 510.The one or more passes
Sensor 510 includes but is not limited to: acceleration transducer 511, gyro sensor 512, pressure sensor 513, fingerprint sensor
514, optical sensor 515 and proximity sensor 516.
Acceleration transducer 511 can detecte the acceleration in three reference axis of the coordinate system established with electronic equipment 500
Spend size.For example, acceleration transducer 511 can be used for detecting component of the acceleration of gravity in three reference axis.Processor
The 501 acceleration of gravity signals that can be acquired according to acceleration transducer 511, control touch display screen 505 with transverse views or
Longitudinal view carries out the display of user interface.Acceleration transducer 511 can be also used for game or the exercise data of user
Acquisition.
Gyro sensor 512 can detecte body direction and the rotational angle of electronic equipment 500, gyro sensor
512 can cooperate with acquisition user to act the 3D of electronic equipment 500 with acceleration transducer 511.Processor 501 is according to gyroscope
The data that sensor 512 acquires, may be implemented following function: action induction (for example changed according to the tilt operation of user
UI), image stabilization, game control and inertial navigation when shooting.
The lower layer of side frame and/or touch display screen 505 in electronic equipment 500 can be set in pressure sensor 513.When
When the side frame of electronic equipment 500 is arranged in pressure sensor 513, user can detecte to the gripping signal of electronic equipment 500,
Right-hand man's identification or prompt operation are carried out according to the gripping signal that pressure sensor 513 acquires by processor 501.Work as pressure sensing
When the lower layer of touch display screen 505 is arranged in device 513, grasped by processor 501 according to pressure of the user to touch display screen 505
Make, realization controls the operability control on the interface UI.Operability control include button control, scroll bar control,
At least one of icon control, menu control.
Fingerprint sensor 514 is used to acquire the fingerprint of user, collected according to fingerprint sensor 514 by processor 501
The identity of fingerprint recognition user, alternatively, by fingerprint sensor 514 according to the identity of collected fingerprint recognition user.It is identifying
When the identity of user is trusted identity out, the user is authorized to execute relevant sensitive operation, the sensitive operation packet by processor 501
Include solution lock screen, check encryption information, downloading software, payment and change setting etc..Electronics can be set in fingerprint sensor 514
Front, the back side or the side of equipment 500.When being provided with physical button or manufacturer Logo on electronic equipment 500, fingerprint sensor
514 can integrate with physical button or manufacturer Logo.
Optical sensor 515 is for acquiring ambient light intensity.In one embodiment, processor 501 can be according to optics
The ambient light intensity that sensor 515 acquires controls the display brightness of touch display screen 505.Specifically, when ambient light intensity is higher
When, the display brightness of touch display screen 505 is turned up;When ambient light intensity is lower, the display for turning down touch display screen 505 is bright
Degree.In another embodiment, the ambient light intensity that processor 501 can also be acquired according to optical sensor 515, dynamic adjust
The acquisition parameters of CCD camera assembly 506.
Proximity sensor 516, also referred to as range sensor are generally arranged at the front panel of electronic equipment 500.Proximity sensor
516 for acquiring the distance between the front of user Yu electronic equipment 500.In one embodiment, when proximity sensor 516 is examined
When measuring the distance between the front of user and electronic equipment 500 and gradually becoming smaller, touch display screen 505 is controlled by processor 501
Breath screen state is switched to from bright screen state;When proximity sensor 516 detect between user and the front of electronic equipment 500 away from
When from becoming larger, touch display screen 505 being controlled by processor 501 and is switched to bright screen state from breath screen state.
It will be understood by those skilled in the art that structure shown in Fig. 5 does not constitute the restriction to electronic equipment 500, it can
To include perhaps combining certain components than illustrating more or fewer components or being arranged using different components.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 504 of instruction, above-metioned instruction can be executed by the processor 520 of electronic equipment 500 to complete above-mentioned reservation side
Method carries corresponding pre- this method comprises: obtaining the first reserve requests for being directed to target user in first reserve requests
Make an appointment a little and reserve object;It is sharp in the database of distributed deployment based on the subscription time point and reservation object
Locking operation is carried out with distributed lock;When detecting locking operation success, first reserve requests are based on, are described
Target user reserves.Optionally, above-metioned instruction can also be executed above-mentioned to complete by the processor 520 of electronic equipment 500
Other steps involved in exemplary embodiment.For example, the non-transitorycomputer readable storage medium can be ROM,
Random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
In the exemplary embodiment, a kind of application program/computer program product is additionally provided, including one or more refers to
It enables, which can be executed by the processor 520 of electronic equipment 500, to complete above-mentioned reserving method, this method
Include: to obtain the first reserve requests for being directed to target user, carries corresponding subscription time point in first reserve requests
And reservation object;Based on the subscription time point and reservation object, distribution is utilized in the database of distributed deployment
Lock carries out locking operation;When detecting locking operation success, first reserve requests are based on, are the target user
It is reserved.Optionally, above-metioned instruction can also be executed by the processor 520 of electronic equipment 500 to complete above-mentioned example reality
Apply other steps involved in example.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the application
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or
Person's adaptive change follows the general principle of the application and including the undocumented common knowledge in the art of the application
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by following
Claim is pointed out.
It should be understood that the application is not limited to the precise structure that has been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.Scope of the present application is only limited by the accompanying claims.
Claims (10)
1. a kind of reserving method, which is characterized in that be applied in e- Learning, comprising:
The first reserve requests of user are obtained, subscription time point and reservation object are carried in first reserve requests;
Based on the subscription time point and reservation object, locked in the database of distributed deployment using distributed lock
Operation;
When detecting locking operation success, first reserve requests are based on, are reserved for the user.
2. the method as described in claim 1, which is characterized in that it is described to be based on the subscription time point and reservation object,
Locking operation is carried out using distributed lock in the database of distributed deployment, comprising:
Based on the subscription time point and reservation object, corresponding resource of giving lessons in the database is determined;
Locking operation is carried out using the distributed lock.
3. method according to claim 2, which is characterized in that carry out described add using distributed lock in the resource of giving lessons
After lock operation, further includes:
When detecting the locking operation success for the resource of giving lessons, the identification number for resource of giving lessons described in acquisition;
The identification number is recorded in subscription list;
It is got in the first preset time period after being reserved for the target user and carries the subscription time point,
And/or the reservation object the second reserve requests when, based on the subscription list, second reserve requests are carried out
Processing.
4. method as claimed in claim 2 or claim 3, which is characterized in that carry out institute using distributed lock in the resource of giving lessons
After stating locking operation, further includes:
When detecting using distributed lock locking operation success, the teaching of the user is added in the resource of giving lessons
Mark information, the teaching mark information is for extracting education informations of the target user in the e- Learning;
Based on first reserve requests, reserved for the target user;
After detecting and reserve successfully for the target user, reservation successful information is generated, in the reservation successful information
Carry the teaching mark information;
After the second preset time period for generating the reservation successful information, it will carry described in the teaching mark information
Reservation successful information is sent to the reservation object.
5. the method as described in claim 1, which is characterized in that pass through when the third period, releases the target distribution formula lock,
The third period is determined based on the subscription time point.
6. the method as described in claim 1, which is characterized in that be based on first reserve requests described, be the target
After user reserves, further includes:
It detects the reservation object and is reserved number in the 4th preset time period, the 4th preset time period is includes institute
State the period including preset time point;
When being reserved number described in the determination more than preset threshold, the taboo about information for the reservation object, the taboo are generated
About information is for prompting reservation object described in user that can not be reserved in the 4th preset time period.
7. a kind of device for displaying predetermined characterized by comprising
Module is obtained, is arranged to obtain the first reserve requests for being directed to target user, be carried in first reserve requests
Corresponding subscription time point and reservation object;
Module is locked, be arranged to based on the subscription time point and reserves object, it is sharp in the database of distributed deployment
Locking operation is carried out with distributed lock;
Reservation module is arranged to be based on first reserve requests when detecting locking operation success, is the mesh
Mark user reserves.
8. device as claimed in claim 7, which is characterized in that the locking module, comprising:
Determining module is arranged to based on the subscription time point and reserves object, determines corresponding in the database award
Class resource;
Locking operation module is arranged to carry out locking operation using the distributed lock.
9. a kind of electronic equipment characterized by comprising
Memory, for storing executable instruction;And
It is any in claim 1-6 to complete to execute the executable instruction for showing with the memory for display
The operation of the reserving method.
10. a kind of computer readable storage medium, for storing computer-readable instruction, which is characterized in that described instruction
It is performed the operation that perform claim requires any reserving method in 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910520332.5A CN110334823B (en) | 2019-06-17 | 2019-06-17 | Reservation method, reservation device, electronic equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910520332.5A CN110334823B (en) | 2019-06-17 | 2019-06-17 | Reservation method, reservation device, electronic equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110334823A true CN110334823A (en) | 2019-10-15 |
CN110334823B CN110334823B (en) | 2022-04-05 |
Family
ID=68141066
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910520332.5A Active CN110334823B (en) | 2019-06-17 | 2019-06-17 | Reservation method, reservation device, electronic equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110334823B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111507492A (en) * | 2020-03-31 | 2020-08-07 | 北京大米科技有限公司 | Course reservation request processing method, device, storage medium and terminal |
CN111611081A (en) * | 2020-05-25 | 2020-09-01 | 北京字节跳动网络技术有限公司 | Request method, request device, computer equipment and storage medium |
CN112732454A (en) * | 2020-12-30 | 2021-04-30 | 北京懿医云科技有限公司 | Medical service appointment method, device, storage medium and equipment |
Citations (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080080445A1 (en) * | 2006-09-28 | 2008-04-03 | Christopher Bayne | Reservation management system and method |
CN101256509A (en) * | 2008-04-07 | 2008-09-03 | 中兴通讯股份有限公司 | Locking method, unlocking method and implementing method for lock mechanism |
CN101901237A (en) * | 2009-12-04 | 2010-12-01 | 四川川大智胜软件股份有限公司 | Type-Index-Value distributed database built based on SQIite |
CN103020257A (en) * | 2012-12-21 | 2013-04-03 | 曙光信息产业(北京)有限公司 | Implementation method and device for data operation |
CN103034739A (en) * | 2012-12-29 | 2013-04-10 | 天津南大通用数据技术有限公司 | Distributed memory system and updating and querying method thereof |
CN103150602A (en) * | 2013-03-04 | 2013-06-12 | 黄晓惠 | Reservation system and reservation method |
CN103353867A (en) * | 2005-12-29 | 2013-10-16 | 亚马逊科技公司 | Distributed replica storage system with web services interface |
CN103458036A (en) * | 2013-09-03 | 2013-12-18 | 杭州华三通信技术有限公司 | Access device and method of cluster file system |
CN103514485A (en) * | 2013-09-23 | 2014-01-15 | 苏州经贸职业技术学院 | One-card multi-media classroom on-line ordering system based on local area network |
CN104065636A (en) * | 2013-07-02 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Data processing method and system |
CN104702655A (en) * | 2014-03-21 | 2015-06-10 | 杭州海康威视系统技术有限公司 | Cloud storage resource distribution method and system |
CN105208124A (en) * | 2015-09-29 | 2015-12-30 | 华为技术有限公司 | Method and device for managing locks and method and device for determining lock management servers |
CN105761182A (en) * | 2016-03-02 | 2016-07-13 | 深圳青豆教育科技有限公司 | Teacher appointment method and device for online curriculum |
CN106202462A (en) * | 2016-07-15 | 2016-12-07 | 北京奇虎科技有限公司 | Method and device for data configuration data lock |
CN106503001A (en) * | 2015-09-03 | 2017-03-15 | 阿里巴巴集团控股有限公司 | Data-updating method and device in distributed type assemblies environment |
WO2017113261A1 (en) * | 2015-12-30 | 2017-07-06 | 华为技术有限公司 | Locking request processing method and server |
CN107181789A (en) * | 2017-03-31 | 2017-09-19 | 北京奇艺世纪科技有限公司 | A kind of distributed lock implementation method and device |
CN107292640A (en) * | 2016-03-30 | 2017-10-24 | 阿里巴巴集团控股有限公司 | Resource information processing method and device in many businessman's joint promotion activities |
CN107544850A (en) * | 2016-06-29 | 2018-01-05 | 百度在线网络技术(北京)有限公司 | Method and apparatus for controlling distributed lock |
CN108717810A (en) * | 2018-05-12 | 2018-10-30 | 周油 | A kind of Yoga information issuing system |
CN108833563A (en) * | 2018-06-26 | 2018-11-16 | 南通森雅商务服务有限公司 | A kind of cloud customer service platform based on cloud computing and the network teleconference |
CN109145007A (en) * | 2018-07-28 | 2019-01-04 | 重庆小雨点小额贷款有限公司 | A kind of data processing method, device, server and computer storage medium |
CN109583835A (en) * | 2018-11-27 | 2019-04-05 | 平安科技(深圳)有限公司 | A kind of information query method and device and storage medium |
CN109657829A (en) * | 2018-12-20 | 2019-04-19 | 泰康保险集团股份有限公司 | Service request processing method, device, electronic equipment and computer-readable medium |
CN109766186A (en) * | 2019-01-03 | 2019-05-17 | 中国联合网络通信集团有限公司 | Reserve resource distribution method, device, system and readable storage medium storing program for executing |
-
2019
- 2019-06-17 CN CN201910520332.5A patent/CN110334823B/en active Active
Patent Citations (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103353867A (en) * | 2005-12-29 | 2013-10-16 | 亚马逊科技公司 | Distributed replica storage system with web services interface |
US20080080445A1 (en) * | 2006-09-28 | 2008-04-03 | Christopher Bayne | Reservation management system and method |
CN101256509A (en) * | 2008-04-07 | 2008-09-03 | 中兴通讯股份有限公司 | Locking method, unlocking method and implementing method for lock mechanism |
CN101901237A (en) * | 2009-12-04 | 2010-12-01 | 四川川大智胜软件股份有限公司 | Type-Index-Value distributed database built based on SQIite |
CN103020257A (en) * | 2012-12-21 | 2013-04-03 | 曙光信息产业(北京)有限公司 | Implementation method and device for data operation |
CN103034739A (en) * | 2012-12-29 | 2013-04-10 | 天津南大通用数据技术有限公司 | Distributed memory system and updating and querying method thereof |
CN103150602A (en) * | 2013-03-04 | 2013-06-12 | 黄晓惠 | Reservation system and reservation method |
CN104065636A (en) * | 2013-07-02 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Data processing method and system |
CN103458036A (en) * | 2013-09-03 | 2013-12-18 | 杭州华三通信技术有限公司 | Access device and method of cluster file system |
CN103514485A (en) * | 2013-09-23 | 2014-01-15 | 苏州经贸职业技术学院 | One-card multi-media classroom on-line ordering system based on local area network |
CN104702655A (en) * | 2014-03-21 | 2015-06-10 | 杭州海康威视系统技术有限公司 | Cloud storage resource distribution method and system |
CN106503001A (en) * | 2015-09-03 | 2017-03-15 | 阿里巴巴集团控股有限公司 | Data-updating method and device in distributed type assemblies environment |
CN105208124A (en) * | 2015-09-29 | 2015-12-30 | 华为技术有限公司 | Method and device for managing locks and method and device for determining lock management servers |
WO2017113261A1 (en) * | 2015-12-30 | 2017-07-06 | 华为技术有限公司 | Locking request processing method and server |
CN105761182A (en) * | 2016-03-02 | 2016-07-13 | 深圳青豆教育科技有限公司 | Teacher appointment method and device for online curriculum |
CN107292640A (en) * | 2016-03-30 | 2017-10-24 | 阿里巴巴集团控股有限公司 | Resource information processing method and device in many businessman's joint promotion activities |
CN107544850A (en) * | 2016-06-29 | 2018-01-05 | 百度在线网络技术(北京)有限公司 | Method and apparatus for controlling distributed lock |
CN106202462A (en) * | 2016-07-15 | 2016-12-07 | 北京奇虎科技有限公司 | Method and device for data configuration data lock |
CN107181789A (en) * | 2017-03-31 | 2017-09-19 | 北京奇艺世纪科技有限公司 | A kind of distributed lock implementation method and device |
CN108717810A (en) * | 2018-05-12 | 2018-10-30 | 周油 | A kind of Yoga information issuing system |
CN108833563A (en) * | 2018-06-26 | 2018-11-16 | 南通森雅商务服务有限公司 | A kind of cloud customer service platform based on cloud computing and the network teleconference |
CN109145007A (en) * | 2018-07-28 | 2019-01-04 | 重庆小雨点小额贷款有限公司 | A kind of data processing method, device, server and computer storage medium |
CN109583835A (en) * | 2018-11-27 | 2019-04-05 | 平安科技(深圳)有限公司 | A kind of information query method and device and storage medium |
CN109657829A (en) * | 2018-12-20 | 2019-04-19 | 泰康保险集团股份有限公司 | Service request processing method, device, electronic equipment and computer-readable medium |
CN109766186A (en) * | 2019-01-03 | 2019-05-17 | 中国联合网络通信集团有限公司 | Reserve resource distribution method, device, system and readable storage medium storing program for executing |
Non-Patent Citations (1)
Title |
---|
陈文武: ""分布式锁技术研究"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111507492A (en) * | 2020-03-31 | 2020-08-07 | 北京大米科技有限公司 | Course reservation request processing method, device, storage medium and terminal |
CN111611081A (en) * | 2020-05-25 | 2020-09-01 | 北京字节跳动网络技术有限公司 | Request method, request device, computer equipment and storage medium |
CN111611081B (en) * | 2020-05-25 | 2023-05-09 | 北京字节跳动网络技术有限公司 | Request method, request device, computer equipment and storage medium |
CN112732454A (en) * | 2020-12-30 | 2021-04-30 | 北京懿医云科技有限公司 | Medical service appointment method, device, storage medium and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110334823B (en) | 2022-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110532170A (en) | Build method, apparatus, electronic equipment and the medium of test environment | |
CN112181573B (en) | Media resource display method, device, terminal, server and storage medium | |
CN110046018A (en) | Show method, apparatus, electronic equipment and the medium of message | |
CN110347520A (en) | Method, apparatus, electronic equipment and the medium of message distribution | |
CN110334823A (en) | Reserving method, device, electronic equipment and medium | |
CN110308956A (en) | A kind of application interface display methods, device and mobile terminal | |
CN107967154A (en) | Remind item generation method and device | |
CN110049525A (en) | Method for connecting network, device, electronic equipment and medium | |
CN110113659A (en) | Generate method, apparatus, electronic equipment and the medium of video | |
CN110827820A (en) | Voice awakening method, device, equipment, computer storage medium and vehicle | |
CN110007981A (en) | Start method, apparatus, electronic equipment and the medium of application program | |
CN113873281A (en) | Information display method and device, terminal and storage medium | |
CN110362366A (en) | A kind of application interface display methods and device | |
CN110535820A (en) | For the classification method of malice domain name, device, electronic equipment and medium | |
CN110334736A (en) | Image-recognizing method, device, electronic equipment and medium | |
CN108335144A (en) | Show the methods, devices and systems of application program | |
CN110341627A (en) | The method and apparatus for controlling interior behavior | |
CN110288689A (en) | The method and apparatus that electronic map is rendered | |
CN109933594A (en) | Obtain method, apparatus, electronic equipment and the medium of data | |
CN109771955A (en) | Invite request processing method, device, terminal and storage medium | |
CN109544117A (en) | Meeting room information display method, device, terminal, server and storage medium | |
CN111045562B (en) | Interface display method, device, equipment and readable storage medium | |
CN110290191B (en) | Resource transfer result processing method, device, server, terminal and storage medium | |
CN109218169B (en) | Instant messaging method, device and storage medium | |
EP3904969A1 (en) | Information processing method, wearable electronic device, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |