CN115914175A - Method and device for controlling concurrent sessions, electronic equipment and computer storage medium - Google Patents

Method and device for controlling concurrent sessions, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN115914175A
CN115914175A CN202211429497.XA CN202211429497A CN115914175A CN 115914175 A CN115914175 A CN 115914175A CN 202211429497 A CN202211429497 A CN 202211429497A CN 115914175 A CN115914175 A CN 115914175A
Authority
CN
China
Prior art keywords
friend
user terminal
friend adding
sessions
user terminals
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.)
Pending
Application number
CN202211429497.XA
Other languages
Chinese (zh)
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.)
Lingxi Beijing Technology Co Ltd
Original Assignee
Lingxi Beijing Technology 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 Lingxi Beijing Technology Co Ltd filed Critical Lingxi Beijing Technology Co Ltd
Priority to CN202211429497.XA priority Critical patent/CN115914175A/en
Publication of CN115914175A publication Critical patent/CN115914175A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application belongs to the technical field of communication, and discloses a method, a device, electronic equipment and a computer storage medium for controlling concurrent sessions, wherein the method comprises the steps of establishing sessions with a plurality of user terminals according to the number of concurrent sessions; sending friend adding requests to user terminals meeting friend adding conditions according to the sessions; determining user terminals with successful friend addition according to friend addition response messages returned by the user terminals; adjusting the concurrency number of the sessions according to the user terminals meeting the friend adding conditions, the friend adding request time and the friend adding success time; and controlling the number of concurrent sessions according to the adjusted number of concurrent sessions, so that the accuracy of concurrent session control is improved.

Description

Method and device for controlling concurrent sessions, electronic equipment and computer storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for concurrent session control, an electronic device, and a computer storage medium.
Background
With the development of artificial intelligence technology, a session is generally established in parallel with user terminals of a plurality of service objects (e.g., clients) by means of a concurrent session through an artificial intelligence device (e.g., a robot), and when it is confirmed through the session that the service objects agree to add friends, a friend addition operation is performed on the service objects agreeing to add friends.
When the number of concurrent sessions is large, it is usually difficult to perform a friend adding operation in time, which may cause a problem of subsequent friend adding failure, and therefore, how to accurately control the number of concurrent sessions is a technical problem to be solved.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, an electronic device, and a computer storage medium for controlling concurrent sessions, so as to improve accuracy of controlling concurrent sessions when controlling a number of concurrent sessions.
In one aspect, a method for concurrent session control is provided, including:
establishing sessions with a plurality of user terminals according to the session concurrency number;
sending a friend adding request to a user terminal meeting friend adding conditions according to each session;
determining a user terminal with a successful friend addition according to a friend addition response message returned by each user terminal;
adjusting the concurrency number of the sessions according to the user terminal meeting the friend adding condition, the friend adding request time and the friend adding success time;
and controlling the number of the concurrent sessions according to the adjusted number of the concurrent sessions.
In one embodiment, sending a friend adding request to a user terminal meeting friend adding conditions according to each session includes:
performing semantic analysis on session content between each user terminal and a target user terminal to obtain a semantic analysis result; the target user terminal is any one of the user terminals;
if the semantic analysis result is determined to be that friends are allowed to be added, judging that the target user terminal meets friend adding conditions;
and sending a friend adding request to the target user terminal.
In one embodiment, adjusting the number of concurrent sessions according to the user terminal meeting the friend adding condition, the friend adding request time, and the friend adding success time includes:
determining friend adding interval time of each user terminal according to friend adding request time and friend adding success time of each user terminal;
screening out user terminals with friend adding interval time in an interval;
acquiring the screened overtime number of the user terminals and the total number of the user terminals meeting friend adding conditions;
and adjusting the session concurrency number according to the timeout number and the total number.
In one embodiment, before adjusting the number of concurrent sessions according to the user terminal meeting the friend adding condition, the friend adding request time, and the friend adding success time, the method further includes:
obtaining an adjustment interval time period based on the adjustment interval duration;
screening out user terminals which accord with friend adding conditions in an adjustment interval time period;
and acquiring the friend adding request time and the friend adding success time of each user terminal.
In one embodiment, adjusting the number of session concurrencies according to the number of timeouts and the total number includes:
obtaining the proportion of friends according to the overtime quantity and the total quantity;
acquiring the overtime quantity, the total quantity and the adjustment quantity correspondingly set by the friend occupation ratio;
and adjusting the concurrency number of the session according to the adjustment amount.
In one aspect, an apparatus for concurrent session control is provided, including:
the establishing unit is used for establishing sessions with a plurality of user terminals according to the session concurrency number;
a sending unit, configured to send a friend addition request to a user terminal meeting friend addition conditions according to each session;
the determining unit is used for determining the user terminals with successful friend addition according to the friend addition response messages returned by the user terminals;
the adjusting unit is used for adjusting the concurrency number of the sessions according to the user terminal meeting the friend adding condition, the friend adding request time and the friend adding success time;
and the control unit is used for controlling the number of the concurrent sessions according to the adjusted number of the concurrent sessions.
In one embodiment, the sending unit is configured to:
performing semantic analysis on session content between each user terminal and a target user terminal to obtain a semantic analysis result; the target user terminal is any one of the user terminals;
if the semantic analysis result is determined to be that the addition of the friends is allowed, judging that the target user terminal meets the friend addition condition;
and sending a friend adding request to the target user terminal.
In one embodiment, the adjusting unit is configured to:
determining friend adding interval time of each user terminal according to friend adding request time and friend adding success time of each user terminal;
screening out user terminals with friend adding interval time in an interval;
acquiring the screened overtime number of the user terminals and the total number of the user terminals meeting friend adding conditions;
and adjusting the session concurrency number according to the timeout number and the total number.
In one embodiment, the adjusting unit is further configured to:
obtaining an adjustment interval time period based on the adjustment interval duration;
screening out user terminals which accord with friend adding conditions in an adjustment interval time period;
and acquiring the friend adding request time and the friend adding success time of each user terminal.
In one embodiment, the adjusting unit is further configured to:
obtaining the proportion of friends according to the overtime quantity and the total quantity;
acquiring the overtime quantity, the total quantity and the adjustment quantity correspondingly set by the friend occupation ratio;
and adjusting the concurrency number of the session according to the adjustment amount.
In one aspect, an electronic device is provided, comprising a processor and a memory, the memory storing computer readable instructions which, when executed by the processor, perform the steps of the method provided in the various alternative implementations of concurrent session control as described above.
In one aspect, a computer-readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of the method as provided in the various alternative implementations of concurrent session control as described above.
In one aspect, a computer program product is provided which, when run on a computer, causes the computer to perform the steps of the method as provided in any of the various alternative implementations of concurrent session control described above.
In the method, the device, the electronic equipment and the computer storage medium for controlling the concurrent sessions provided by the embodiment of the application, the sessions are established with a plurality of user terminals according to the concurrent number of the sessions; sending friend adding requests to user terminals meeting friend adding conditions according to the sessions; determining a user terminal with a successful friend addition according to a friend addition response message returned by each user terminal; adjusting the concurrency number of the sessions according to the user terminals meeting the friend adding conditions, the friend adding request time and the friend adding success time; and controlling the number of concurrent sessions according to the adjusted number of concurrent sessions, so that the accuracy of concurrent session control is improved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart of a method for concurrent session control according to an embodiment of the present application;
fig. 2 is a block diagram illustrating a structure of an apparatus for controlling concurrent sessions according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as presented in the figures, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
First, some terms referred to in the embodiments of the present application will be described to facilitate understanding by those skilled in the art.
The terminal equipment: may be a mobile terminal, a fixed terminal, or a portable terminal such as a mobile handset, station, unit, device, multimedia computer, multimedia tablet, internet node, communicator, desktop computer, laptop computer, notebook computer, netbook computer, tablet computer, personal communication system device, personal navigation device, personal digital assistant, audio/video player, digital camera/camcorder, positioning device, television receiver, radio broadcast receiver, electronic book device, gaming device, or any combination thereof, including the accessories and peripherals of these devices, or any combination thereof. It is also contemplated that the terminal device can support any type of interface to the user (e.g., wearable device), and the like.
A server: the cloud server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and can also be a cloud server for providing basic cloud computing services such as cloud service, a cloud database, cloud computing, cloud functions, cloud storage, network service, cloud communication, middleware service, domain name service, security service, big data and artificial intelligence platform and the like.
In order to improve the accuracy of concurrent session control when controlling the number of concurrent sessions, embodiments of the present application provide a method, an apparatus, an electronic device, and a computer storage medium for concurrent session control.
In the embodiment of the application, the method is applied to the electronic equipment, and the electronic equipment can be a server or terminal equipment such as a robot.
The method is applied to a server, the server controls a plurality of agent terminals to establish sessions with a plurality of user terminals and add friends, adaptively adjusts the concurrency number of the sessions, and adjusts the number of the established sessions according to the adjusted concurrency number of the sessions.
The application scenario is applied to a seat terminal, the seat terminal establishes sessions with a plurality of user terminals and adds friends, adaptively adjusts the number of concurrent sessions, and adjusts the number of established sessions according to the adjusted number of concurrent sessions.
Referring to fig. 1, a flowchart of a method for concurrent session control according to an embodiment of the present application is shown, where the method includes the following specific implementation flows:
step 100: and establishing sessions with a plurality of user terminals according to the session concurrency number.
Specifically, the session concurrency number may be set by default, or may be set according to a session concurrency instruction of a user (e.g., an administrator for session concurrency control), or may be determined according to the historical session concurrency number and friend addition history data.
In one embodiment, when determining that a session concurrency instruction of a user is received, acquiring a set (e.g., a contact list) of the session concurrency number initially set by the system and the contact ways of the service objects of which the sessions are to be established, screening out the contact ways of the service objects of the session concurrency number from the set, and establishing sessions (e.g., establishing sessions in a telephone, voice or video manner) with the user terminals of the service objects according to the screened contact ways.
Further, since there may be a service object that fails to establish or ends the session, so that the number of established sessions does not reach the number of session concurrency, the number of established sessions may be periodically or real-timely detected, and when it is determined that the number of established sessions does not reach the number of session concurrency, sessions may be initiated to other user terminals until the number of established sessions reaches the number of session concurrency, or it is determined that there is no user terminal that needs to establish a session.
Thus, the session can be simultaneously established with a plurality of user terminals in a concurrent session mode.
Step 101: and sending a friend adding request to the user terminal meeting the friend adding condition according to each session.
Specifically, when step 101 is executed, the following steps may be adopted:
s1011: and performing semantic analysis on the session content between the target user terminal and the target user terminal aiming at the target user terminal in each user terminal to obtain a semantic analysis result.
The target user terminal is any one of the user terminals.
If the electronic equipment and the target user terminal are in voice or video conversation, the voice conversations of the electronic equipment and the target user terminal can be subjected to text conversion to obtain a voice text, and the voice text is subjected to semantic analysis to obtain a semantic analysis result of whether the service object agrees to add the friend or not.
S1012: and if the semantic analysis result is that the addition of the friends is agreed, judging that the target user terminal meets the friend addition condition.
S1013: and sending a friend adding request to the target user terminal.
Step 102: and determining the user terminal with the successful friend addition according to the friend addition response message returned by each user terminal.
In one implementation mode, a friend adding request is sent to a target user terminal, a friend adding response message returned by the target user terminal is received, and whether friend adding is successful is determined according to the friend adding response message.
Therefore, the user terminal with the friend added successfully can be screened out according to the received friend adding response message.
Step 103: and adjusting the concurrency number of the sessions according to the user terminals meeting the friend adding conditions, the friend adding request time and the friend adding success time.
Specifically, when step 103 is executed, the following steps may be adopted:
s1031: and determining friend adding interval time of each user terminal according to the friend adding request time and the friend adding success time of each user terminal.
In one implementation mode, the time difference between the friend adding success time and the friend adding request time of the target user terminal is determined, and the friend adding interval time is obtained.
The friend addition request time may be a time for sending a friend addition request. The buddy addition success time may be a time when the addition response message is received.
Furthermore, the statistical user terminals can be screened according to time.
In one embodiment, the adjustment interval period is obtained based on an adjustment interval duration (e.g., 5 minutes, 1 hour); screening out user terminals which accord with friend adding conditions in an adjustment interval time period; and acquiring the screened friend adding request time and friend adding success time of each user terminal.
S1032: and screening out the user terminals with the friend adding interval time in the interval.
In practical applications, the interval may be set according to practical application scenarios, for example, the interval is greater than 30s (seconds).
For example, the friend adding interval time of the target user terminal is 50s, the interval is [30,100], and the target user terminal is screened because 50s is located in the interval.
S1033: and acquiring the screened overtime number of the user terminals and the total number of the user terminals meeting friend adding conditions.
S1034: the number of session concurrencies is adjusted based on the number of timeouts and the total number.
Specifically, when S1034 is executed, the following steps may be adopted:
s1034-1: and obtaining the friend occupation ratio according to the overtime quantity, the total quantity and the total quantity.
The friend proportion P can be represented by the following formula: p = A/B;
wherein, a is the number of overtime, that is, the number of the user terminals with the screened friend adding interval time in the interval. And B is the total number, that is, the total number of the initiated user terminals meeting the friend adding condition.
S1034-2: and obtaining the overtime quantity, the total quantity and the adjustment quantity correspondingly set by the friend occupation ratio.
In one embodiment, a mapping relation between a preset friend occupation ratio and an adjustment amount is obtained, and the adjustment amount corresponding to the friend occupation ratio is obtained according to the mapping relation.
Referring to table 1, an example table of mapping relationships is shown. In table 1, the adjustment amount is n%, that is, the number of session concurrences is adjusted up by n%, and the adjustment amount is-n%, that is, the number of session concurrences is adjusted down by n%. Wherein n is a positive number, e.g., 5. Furthermore, the adjustment of the concurrency number of the session can be closed or opened according to the user instruction.
TABLE 1
A/B Amount of concurrent adjustment Remarks for note
A/B=0% 5% Can be opened and closed
0%<A/B<5% 0
5%≤A/B<10% -10%
20%≤A/B<30% -20%
A/B>30% -50%
In one embodiment, a mapping relation among the preset timeout number, the total number, the friend occupation ratio and the adjustment amount is obtained.
As an example, when A is determined to be greater than 50 and P is determined to be greater than 5%, the adjustment amount is determined to be-10%.
As another example, when it is determined that B is greater than 1000 and P =0%, the adjustment amount is determined to be 5%.
Further, different mapping relationships can be set for different interval durations.
In one embodiment, a mapping relation among preset interval duration, timeout number, total number, friend occupation ratio and adjustment amount is obtained.
Further, if the timeout amount within the interval duration is higher than the timeout threshold (e.g., 5%), it indicates that the number of the friend adding operation is large, and then the alarm operation is executed. Such as short messages and notifications.
S1034-3: and adjusting the concurrency number of the session according to the adjustment amount.
Step 104: and controlling the number of the concurrent sessions according to the adjusted number of the concurrent sessions.
Specifically, the stored session concurrency number is updated, and if it is determined that the number of currently established sessions is lower than the session concurrency number, one or more sessions can be newly established until the number of established sessions reaches the session concurrency number.
Further, steps 100-104 may be performed in a loop, employing real-time adaptive adjustment of the number of concurrent sessions established.
According to the method and the device, the session concurrency number can be adaptively adjusted according to the time interval from the friend adding request to the friend adding success operation, and the accuracy of concurrent session control is improved when the concurrent session number is controlled.
Based on the same inventive concept, the embodiment of the present application further provides a device for concurrent session control, and as the principle of solving the problem by the device and the equipment is similar to that of a method for concurrent session control, the implementation of the device can refer to the implementation of the method, and repeated parts are not described again.
As shown in fig. 2, a schematic structural diagram of a device for concurrent session control according to an embodiment of the present application is shown, including:
an establishing unit 201, configured to establish sessions with multiple user terminals according to the number of concurrent sessions;
a sending unit 202, configured to send a friend addition request to a user terminal meeting friend addition conditions according to each session;
a determining unit 203, configured to determine, according to a friend addition response message returned by each user terminal, a user terminal to which a friend is successfully added;
an adjusting unit 204, configured to adjust the number of concurrent sessions according to the user terminal meeting the friend adding condition, the friend adding request time, and the friend adding success time;
a control unit 205, configured to control the number of concurrent sessions according to the adjusted number of concurrent sessions.
In one embodiment, the sending unit 202 is configured to:
performing semantic analysis on session contents with a target user terminal in each user terminal to obtain a semantic analysis result; the target user terminal is any one of the user terminals;
if the semantic analysis result is determined to be that friends are allowed to be added, judging that the target user terminal meets friend adding conditions;
and sending a friend adding request to the target user terminal.
In one embodiment, the adjusting unit 204 is configured to:
determining friend adding interval time of each user terminal according to friend adding request time and friend adding success time of each user terminal;
screening out user terminals with friend adding interval time in an interval;
acquiring the screened overtime number of the user terminals and the total number of the user terminals meeting friend adding conditions;
and adjusting the session concurrency number according to the timeout number and the total number.
In one embodiment, the adjusting unit 204 is further configured to:
obtaining an adjustment interval time period based on the adjustment interval duration;
screening out user terminals which accord with friend adding conditions in an adjustment interval time period;
and acquiring the screened friend adding request time and friend adding success time of each user terminal.
In one embodiment, the adjusting unit 204 is further configured to:
obtaining the proportion of friends according to the overtime quantity and the total quantity;
acquiring the overtime quantity, the total quantity and the adjustment quantity correspondingly set by the friend occupation ratio;
and adjusting the concurrency number of the session according to the adjustment amount.
According to the method, the device, the electronic equipment and the computer storage medium for controlling the concurrent sessions, the sessions are established with the user terminals according to the concurrent number of the sessions; sending friend adding requests to user terminals meeting friend adding conditions according to the sessions; determining user terminals with successful friend addition according to friend addition response messages returned by the user terminals; adjusting the concurrency number of the sessions according to the user terminals meeting the friend adding conditions, the friend adding request time and the friend adding success time; and controlling the number of concurrent sessions according to the adjusted number of concurrent sessions, so that the accuracy of concurrent session control is improved.
Fig. 3 shows a schematic structural diagram of an electronic device 3000. Referring to fig. 3, an electronic apparatus 3000 includes: the processor 3010 and the memory 3020 may further include a power source 3030, a display unit 3040, and an input unit 3050.
The processor 3010 is a control center of the electronic apparatus 3000, connects respective components by various interfaces and lines, and executes various functions of the electronic apparatus 3000 by running or executing software programs and/or data stored in the memory 3020, thereby monitoring the electronic apparatus 3000 as a whole.
In the embodiment of the present application, the processor 3010 executes each step in the above embodiments when calling the computer program stored in the memory 3020.
Alternatively, processor 3010 may include one or more processing units; preferably, the processor 3010 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, applications, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 3010. In some embodiments, the processor, memory, and/or memory may be implemented on a single chip, or in some embodiments, they may be implemented separately on separate chips.
The memory 3020 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, various applications, and the like; the storage data area may store data created according to use of the electronic device 3000, and the like. Additionally, memory 3020 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
Electronic device 3000 also includes a power supply 3030 (e.g., a battery) that provides power to various components, which may be logically coupled to processor 3010 via a power management system, thereby providing management of charging, discharging, and power consumption via the power management system.
The display unit 3040 may be used to display information input by a user or information provided to the user, and various menus of the electronic device 3000, and is mainly used to display a display interface of each application in the electronic device 3000 and objects such as texts and pictures displayed in the display interface in the embodiment of the present invention. The display unit 3040 may include a display panel 3041. The Display panel 3041 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The input unit 3050 may be used to receive information such as a number or a character input by a user. The input unit 3050 may include a touch panel 3051 and other input devices 3052. Among other things, the touch panel 3051, also referred to as a touch screen, can collect touch operations of a user (e.g., operations of a user on or near the touch panel 3051 using any suitable object or accessory such as a finger, a stylus, etc.).
Specifically, the touch panel 3051 may detect a touch operation of a user, detect signals generated by the touch operation, convert the signals into touch point coordinates, transmit the touch point coordinates to the processor 3010, receive a command transmitted from the processor 3010, and execute the command. In addition, the touch panel 3051 can be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. Other input devices 3052 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, power on/off keys, etc.), a trackball, a mouse, a joystick, and the like.
Of course, the touch panel 3051 may cover the display panel 3041, and when the touch panel 3051 detects a touch operation on or near the touch panel 3051, the touch panel is transmitted to the processor 3010 to determine the type of the touch event, and then the processor 3010 provides a corresponding visual output on the display panel 3041 according to the type of the touch event. Although in fig. 3, the touch panel 3051 and the display panel 3041 are two independent components to implement the input and output functions of the electronic device 3000, in some embodiments, the touch panel 3051 and the display panel 3041 may be integrated to implement the input and output functions of the electronic device 3000.
The electronic device 3000 may also include one or more sensors, such as pressure sensors, gravitational acceleration sensors, proximity light sensors, and the like. Of course, the electronic device 3000 may further include other components such as a camera, which are not shown in fig. 3 and will not be described in detail since they are not components that are used in the embodiment of the present application.
Those skilled in the art will appreciate that fig. 3 is merely an example of an electronic device and is not limiting of electronic devices and may include more or fewer components than those shown, or some components may be combined, or different components.
In an embodiment of the present application, a computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by a processor, the communication device may perform the steps in the above embodiments.
For convenience of description, the above parts are separately described as modules (or units) according to functional division. Of course, the functionality of the various modules (or units) may be implemented in the same one or more pieces of software or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (12)

1. A method of concurrent session control, comprising:
establishing sessions with a plurality of user terminals according to the session concurrency number;
sending friend adding requests to user terminals meeting friend adding conditions according to the sessions;
determining a user terminal with a successful friend addition according to a friend addition response message returned by each user terminal;
adjusting the concurrency number of the sessions according to the user terminal meeting the friend adding condition, the friend adding request time and the friend adding success time;
and controlling the number of the concurrent sessions according to the adjusted number of the concurrent sessions.
2. The method of claim 1, wherein the sending a friend addition request to the user terminal meeting friend addition conditions according to each session comprises:
performing semantic analysis on session content between each user terminal and a target user terminal in each user terminal to obtain a semantic analysis result; the target user terminal is any one of the user terminals;
if the semantic analysis result is determined to be that friends are allowed to be added, judging that the target user terminal meets the friend adding condition;
and sending the friend adding request to the target user terminal.
3. The method according to claim 1 or 2, wherein the adjusting the number of concurrent sessions according to the user terminal meeting the friend adding condition, the friend adding request time, and the friend adding success time comprises:
determining friend adding interval time of each user terminal according to friend adding request time and friend adding success time of each user terminal;
screening out user terminals with friend adding interval time in an interval;
acquiring the screened overtime number of the user terminals and the total number of the user terminals meeting the friend adding condition;
and adjusting the session concurrency number according to the timeout number and the total number.
4. The method of claim 3, wherein before the adjusting the number of the concurrent sessions according to the user terminal meeting the friend adding condition, the friend adding request time, and the friend adding success time, the method further comprises:
obtaining an adjustment interval time period based on the adjustment interval duration;
screening out user terminals which accord with friend adding conditions in the adjusting interval time period;
and acquiring the screened friend adding request time and friend adding success time of each user terminal.
5. The method of claim 4, wherein the adjusting the number of session concurrencies as a function of the number of timeouts and the total number comprises:
obtaining the friend occupation ratio according to the overtime quantity and the total quantity;
acquiring the overtime quantity, the total quantity and the adjustment quantity correspondingly set by the friend occupation ratio;
and adjusting the session concurrency number according to the adjustment amount.
6. An apparatus for concurrent session control, comprising:
the establishing unit is used for establishing sessions with a plurality of user terminals according to the session concurrency number;
a sending unit, configured to send a friend addition request to a user terminal meeting friend addition conditions according to each session;
the determining unit is used for determining the user terminals with successful friend addition according to the friend addition response messages returned by the user terminals;
the adjusting unit is used for adjusting the session concurrency number according to the user terminal meeting the friend adding condition, the friend adding request time and the friend adding success time;
and the control unit is used for controlling the number of the concurrent sessions according to the adjusted number of the concurrent sessions.
7. The apparatus of claim 6, wherein the sending unit is to:
performing semantic analysis on session content between each user terminal and a target user terminal in each user terminal to obtain a semantic analysis result; the target user terminal is any one of the user terminals;
if the semantic analysis result is determined to be that friends are allowed to be added, judging that the target user terminal meets the friend adding condition;
and sending the friend adding request to the target user terminal.
8. The apparatus of claim 6 or 7, wherein the adjustment unit is to:
determining friend adding interval time of each user terminal according to friend adding request time and friend adding success time of each user terminal;
screening out user terminals with friend adding interval time in an interval;
acquiring the screened overtime number of the user terminals and the total number of the user terminals meeting the friend adding condition;
and adjusting the session concurrency number according to the timeout number and the total number.
9. The apparatus of claim 8, wherein the adjustment unit is further to:
obtaining an adjustment interval time period based on the adjustment interval duration;
screening out user terminals which accord with friend adding conditions in the adjusting interval time period;
and acquiring the friend adding request time and the friend adding success time of each user terminal.
10. The apparatus of claim 9, wherein the adjustment unit is further to:
obtaining the friend occupation ratio according to the overtime quantity and the total quantity;
acquiring the overtime quantity, the total quantity and the adjustment quantity correspondingly set by the friend occupation ratio;
and adjusting the session concurrency number according to the adjustment amount.
11. An electronic device comprising a processor and a memory, the memory storing computer readable instructions that, when executed by the processor, perform the method of any one of claims 1-5.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 5.
CN202211429497.XA 2022-11-15 2022-11-15 Method and device for controlling concurrent sessions, electronic equipment and computer storage medium Pending CN115914175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211429497.XA CN115914175A (en) 2022-11-15 2022-11-15 Method and device for controlling concurrent sessions, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211429497.XA CN115914175A (en) 2022-11-15 2022-11-15 Method and device for controlling concurrent sessions, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN115914175A true CN115914175A (en) 2023-04-04

Family

ID=86472313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211429497.XA Pending CN115914175A (en) 2022-11-15 2022-11-15 Method and device for controlling concurrent sessions, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN115914175A (en)

Similar Documents

Publication Publication Date Title
US10871872B2 (en) Intelligent productivity monitoring with a digital assistant
CN109378000A (en) Voice awakening method, device, system, equipment, server and storage medium
EP3531290A1 (en) Data backup method, apparatus, electronic device, storage medium, and system
CN105471704B (en) A kind of method, apparatus and system for realizing more people&#39;s calls
CN108702318A (en) A kind of RCS communication means and equipment
US20170109756A1 (en) User Unsubscription Prediction Method and Apparatus
CN103279272A (en) Method and device for starting application program in electronic device
CN115345464A (en) Service order dispatching method and device, computer equipment and storage medium
US20160057615A1 (en) Transfer of status information concerning a mobile device via a cloud based service
EP4030371A1 (en) Method and device for acquiring virtual resource and storage medium
CN113055485B (en) Remote control method and system, electronic equipment and storage medium
CN114327087A (en) Input event processing method and device, electronic equipment and storage medium
CN116074445A (en) Method, device, electronic equipment and medium for estimating outbound time
CN115914175A (en) Method and device for controlling concurrent sessions, electronic equipment and computer storage medium
CN112640408A (en) Call prompting method and terminal
CN114138401A (en) Container configuration method, device, equipment and medium based on artificial intelligence
CN111144845A (en) Mobile terminal conference reminding method and device
CN106681845B (en) Method and device for managing communication messages
CN113098754A (en) Group revocation method and device, electronic equipment and storage medium
CN114090123B (en) Method and device for configuring equipment parameters, electronic equipment and storage medium
CN115103321B (en) Short message sending method and device, computer equipment and storage medium
WO2022151745A9 (en) Multimedia data publishing method and apparatus
CN117041353B (en) Task processing method and device, electronic equipment and storage medium
CN116346992A (en) Method, device, electronic equipment and medium for concurrent control of outbound call
CN115757746A (en) Session interruption method and device, electronic equipment and computer-readable 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