CN109388498B - Mutual exclusion processing method, device, equipment and medium - Google Patents

Mutual exclusion processing method, device, equipment and medium Download PDF

Info

Publication number
CN109388498B
CN109388498B CN201811154967.XA CN201811154967A CN109388498B CN 109388498 B CN109388498 B CN 109388498B CN 201811154967 A CN201811154967 A CN 201811154967A CN 109388498 B CN109388498 B CN 109388498B
Authority
CN
China
Prior art keywords
icon
display
target
module
time
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.)
Active
Application number
CN201811154967.XA
Other languages
Chinese (zh)
Other versions
CN109388498A (en
Inventor
张磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201811154967.XA priority Critical patent/CN109388498B/en
Publication of CN109388498A publication Critical patent/CN109388498A/en
Application granted granted Critical
Publication of CN109388498B publication Critical patent/CN109388498B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Abstract

The invention discloses a mutual exclusion processing method, a device, equipment and a medium, wherein the method comprises the following steps: receiving a display message sent to a target icon module by a server; the target icon module broadcasts and displays a message according to a pre-established subscription protocol; the other icon modules judge whether the self icon corresponding to the other icon modules is mutually exclusive with the target icon, if so, judge whether the target time is later than the time corresponding to the display information for appointing to display the self icon, and if so, set the display attribute of the self icon as hidden; and the target icon module judges whether the target time is the latest time in the mutual exclusion time, and if so, the display attribute of the target icon is set to be displayed. The method and the device can solve the technical problem that the click rate of the corresponding activity or application of the icon is reduced due to the fact that the mutually exclusive icons in the prior art are displayed simultaneously, so that the click rate and the participation amount of the corresponding application or activity of each icon are guaranteed, and network transmission consumption is reduced.

Description

Mutual exclusion processing method, device, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for processing mutual exclusion.
Background
Currently, with the progress of network communication technology and the speed increase of broadband networks, live webcasts are increasingly developed and applied.
In order to improve the economic income of the anchor and the economic benefit of the live broadcast platform, the current live broadcast platform often provides an activity development function, namely, the anchor or the platform can push an activity link, and an activity icon is pushed and displayed at a viewer end, so that the viewer can enter various activity pages by clicking the icon.
However, when the icons of the activities of the same category, having a competitive relationship, or having an influence on each other are displayed simultaneously at different display positions of the same viewer, mutual conflict is easily caused, the respective participation amounts are influenced, and the total click amount is reduced.
Disclosure of Invention
The invention provides a mutual exclusion processing method, which is used for solving the technical problem that the click quantity of activities or applications corresponding to icons is reduced due to the simultaneous display of mutually exclusive icons in the prior art.
In a first aspect, the present invention provides a mutual exclusion processing method, where the method includes:
receiving display messages sent to a target icon module by a server, wherein the display messages all comprise designated displayed target icons and target time corresponding to the display messages, and the target icon module is a module corresponding to the target icons;
the target icon module broadcasts the display message according to a pre-established subscription protocol so as to enable other icon modules in the display equipment to acquire the display message;
the other icon modules judge whether the self icon corresponding to the other icon module is mutually exclusive with the target icon according to a pre-stored mutual exclusion table and the received display message, if the self icon is mutually exclusive with the target icon, whether the target time is later than the time corresponding to the display information for appointing to display the self icon is judged, and if the target time is mutually exclusive with the target icon, the display attribute of the self icon is set to be hidden;
the target icon module judges whether the target time is the latest time in the mutually exclusive time or not according to the mutually exclusive table and the received display message, and if so, the display attribute of the target icon is set to be displayed; and the mutual exclusion time is used for appointing and displaying time corresponding to the display information of the icon mutually exclusive with the target icon.
Optionally, each icon module corresponds to a display area of the display unit one by one, and each icon corresponding to each icon module is an icon displayed or capable of being displayed on the corresponding display area.
Optionally, if the self icon is not mutually exclusive with the target icon and the self icon is not the target icon, the current display attribute of the self icon is maintained.
Optionally, the broadcasting, by the target icon module, the display message according to a pre-established subscription protocol, so that other icon modules in the display device acquire the display message, including: and the target icon module broadcasts the display message according to a pre-established subscription protocol and a pre-stored mutual exclusion table, so that other icon modules in the display equipment, which have a mutual exclusion relationship with the target icon, acquire the display message.
Optionally, the determining whether the target time is later than a time corresponding to display information for specifying to display the self icon further includes: if not, keeping the current display attribute of the self icon; the determining whether the target time is after the latest time in the mutually exclusive time further includes: and if not, setting the display attribute of the target icon to be hidden.
In a second aspect, a method for processing mutual exclusion is provided, where the method includes:
generating a display message after receiving a request for displaying a target icon, wherein the display message comprises the target icon which is appointed to be displayed and target time corresponding to the display message;
sending the display message to a target icon module of a display device, wherein the target icon module is a module corresponding to the target icon; and the target icon module broadcasts the display message according to a pre-established subscription protocol so as to enable other icon modules in the display equipment to acquire the display message, and the target icon module and the other icon modules can determine and set the display attribute of the icon corresponding to the target icon module and the other icon modules based on the received display message and a pre-stored mutual exclusion table, so that only the icon corresponding to the display information of the icon with the latest time is displayed in the mutually exclusive icons.
In a third aspect, a mutually exclusive processing apparatus is provided, where the apparatus includes:
the system comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving display messages sent by a server to a target icon module, the display messages all comprise designated displayed target icons and target time corresponding to the display messages, and the target icon module is a module corresponding to the target icons;
the broadcasting module is used for broadcasting the display message by the target icon module according to a pre-established subscription protocol so as to enable other icon modules in the display equipment to acquire the display message;
the first processing module is used for judging whether the self icon corresponding to the other icon modules is mutually exclusive with the target icon or not according to a pre-stored mutual exclusion table and the received display message respectively by the other icon modules, judging whether the target time is later than the time corresponding to the display information for appointing to display the self icon or not if the self icon is mutually exclusive with the target icon, and if the target time is later than the time corresponding to the display information for appointing to display the self icon, setting the display attribute of the self icon to be hidden;
the second processing module is used for judging whether the target time is the latest time in the mutual exclusion time or not by the target icon module according to the mutual exclusion table and the received display message, and if so, setting the display attribute of the target icon to be display; and the mutual exclusion time is used for appointing and displaying time corresponding to the display information of the icon mutually exclusive with the target icon.
In a fourth aspect, a mutually exclusive processing apparatus is provided, where the apparatus includes:
the device comprises a generating module, a display module and a processing module, wherein the generating module is used for generating a display message after receiving a request of displaying a target icon, and the display message comprises a specified displayed target icon and a target time corresponding to the display message;
the sending module is used for sending the display message to a target icon module of the display equipment, wherein the target icon module is a module corresponding to the target icon; and the target icon module broadcasts the display message according to a pre-established subscription protocol so as to enable other icon modules in the display equipment to acquire the display message, and the target icon module and the other icon modules can determine and set the display attribute of the icon corresponding to the target icon module and the other icon modules based on the received display message and a pre-stored mutual exclusion table, so that only the icon corresponding to the display information of the icon with the latest time is displayed in the mutually exclusive icons.
In a fifth aspect, an electronic device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of the first or second aspect when executing the program.
A sixth aspect provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of the first or second aspect.
One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
according to the method, the device, the equipment and the medium provided by the embodiment of the application, when the server issues the display message for indicating the display of the target icon, the message is sent to the target icon module corresponding to the target icon, and the target icon module broadcasts based on the display message so as to enable other icon modules in the display equipment to acquire the display message; and the other icon modules and the target icon module can judge whether the indication display time of the self icon corresponding to the other icon module is the latest time in the mutual exclusion time or not according to the pre-stored mutual exclusion table and the received display message respectively, and if so, the display attribute of the self icon is set to be displayed. Therefore, all the display messages issued by the server can be obtained by each icon module through broadcasting, so that whether the icon corresponding to the icon is the last indicated icon in the icons with the mutual exclusion relationship or not can be determined according to all the display messages, if so, the icon is displayed, and therefore, only the last indicated icon in the icons with the mutual exclusion relationship can be displayed on the display equipment, the problem that the mutual influence of the mutual exclusion icons is avoided, and the click quantity and the participation quantity of the corresponding application or activity of each icon are guaranteed.
Furthermore, all display messages are acquired by all the icon modules in a broadcasting mode, and a server is not required to issue all the messages to all the icon modules, so that the consumption of network resources can be effectively reduced.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a mutex processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a mutex processing method according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a mutex processing apparatus according to a third embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a mutex processing apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a medium according to a sixth embodiment of the present invention.
Detailed Description
The embodiment of the application provides a mutual exclusion processing method to solve the technical problem that the click quantity of activities or applications corresponding to icons is reduced due to the fact that mutual exclusion icons in the prior art are displayed simultaneously. Therefore, the click quantity and the participation quantity of the application or the activity corresponding to each icon are ensured, and the network resource consumption is saved.
The technical scheme in the embodiment of the application has the following general idea:
when the display information for indicating the display target icon is issued by the server, the information is sent to the target icon module corresponding to the target icon, and the target icon module broadcasts based on the display information, so that other icon modules in the display equipment acquire the display information, and each icon module can determine whether the corresponding icon is the last indicated icon in the icons with the mutual exclusion relationship or not according to all the display information, and if so, the icon is displayed, so that only the last indicated icon in the icons with the mutual exclusion relationship can be displayed on the display equipment, the problem of mutual influence of the mutual exclusion icons is avoided, and the click quantity and participation quantity of the corresponding application or activity of each icon are ensured. And all display messages are acquired by all the icon modules in a broadcasting mode, and a server is not required to send all the messages to all the icon modules, so that the consumption of network resources can be effectively reduced.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
The present embodiment provides a mutual exclusion processing method, as shown in fig. 1, the method includes:
step S101, receiving display messages sent to a target icon module by a server, wherein the display messages all comprise designated displayed target icons and target time corresponding to the display messages, and the target icon module is a module corresponding to the target icons;
step S102, the target icon module broadcasts the display message according to a pre-established subscription protocol so as to enable other icon modules in the display equipment to acquire the display message;
step S103, the other icon modules respectively judge whether the self icon corresponding to the other icon module is mutually exclusive with the target icon according to a pre-stored mutual exclusion table and the received display message, if the self icon is mutually exclusive with the target icon, whether the target time is later than the time corresponding to the display information for appointing to display the self icon is judged, and if the target time is mutually exclusive, the display attribute of the self icon is set to be hidden;
step S104, the target icon module judges whether the target time is the latest time in the mutual exclusion time according to the mutual exclusion table and the received display message, if so, the display attribute of the target icon is set to be displayed; and the mutual exclusion time is used for appointing and displaying time corresponding to the display information of the icon mutually exclusive with the target icon.
It should be noted that the server may be a single server, a server group, or a cloud server, which is not limited herein. The display device to which the method is applied may be a computer, a tablet computer, a smart phone, or the like, and is not limited herein. Corresponding to the live broadcasting, the display device to which the method is applied can be a spectator end or a live broadcasting end.
The method provided by the present embodiment is described in detail below with reference to fig. 1:
firstly, step S101 is executed, and a display message sent by a server to a target icon module is received, where the display message includes a designated displayed target icon and a target time corresponding to the display message, and the target icon module is a module corresponding to the target icon.
It should be noted that the icon module may be a module of a software architecture, and each icon corresponds to one module, so that the module is used to receive and process the display information of the corresponding icon; the icon modules can also be in one-to-one correspondence with the display areas of the display unit, namely each display area corresponds to one icon module, and the icons corresponding to each icon module are icons which are displayed or can be displayed on the corresponding display areas; of course, the icon module may also be implemented by hardware, and is implemented by a chip or by dividing units on the chip, which is not described here in a repeated manner, and is not listed one by one.
In the embodiment of the present application, the target icon included in the display message may be a code, a logo, or a thumbnail including the target icon, which is not limited herein. The target time included in the display message may be the time of generation of the display message, the time of transmission, the time of reception, or the designated display time, and is not limited herein.
In this embodiment of the application, there are various ways for the server to issue the display message to the target icon module, and two examples are listed below:
first, the server prestores the corresponding relationship between the icons and the icon modules in advance.
Namely, after receiving a request for displaying a target icon, the server generates a display message, wherein the display message comprises the target icon which is appointed to be displayed and the target time corresponding to the display message. And the server determines the address of the icon module corresponding to the target icon according to the corresponding relation between the pre-stored icon and the icon module, and sends the display message to the target icon module.
Specifically, the server may receive a request for displaying a target icon transmitted from the event server, or may receive a request for displaying a target icon transmitted from the event host. After receiving the request, the display information is only sent to the corresponding target icon module in the display device, and the target icon module carries out internal broadcasting without being sent to other icon modules to inform the display condition. Therefore, the network resource consumption of display information issuing is reduced.
Second, the icon corresponds to the identity of the icon module.
After the server receives a request for displaying a target icon, a display message is generated, wherein the display message comprises the target icon which is appointed to be displayed and the target time corresponding to the display message. And the server directly sends the display message carrying the target icon identifier to the display equipment. And the display equipment sends the target icon identifier to a corresponding target icon module according to the target icon identifier.
Of course, in the specific implementation process, the manner of sending the display message to the target icon module by the server is not limited to the above two manners, which are not limited herein, and are not listed again.
Step S102, the target icon module broadcasts the display message according to a pre-established subscription protocol, so that other icon modules in the display device can acquire the display message.
In this embodiment of the present application, the target icon module may broadcast the display message according to a pre-established subscription protocol in a variety of ways, and two examples are listed below:
first, broadcast to all icon corresponding icon modules.
Namely, after receiving the display message, the target icon module broadcasts all the icon modules in the display device, so that each icon module in the display device can acquire all the display messages for the own icon and other icons issued by the server in a broadcasting manner, and thus whether the icon corresponding to the icon is displayed or hidden is determined.
And secondly, broadcasting to icon modules corresponding to mutually exclusive icons.
After receiving the display message, the target icon module determines other mutually exclusive icons mutually exclusive with the target icon according to a pre-stored mutually exclusive table; and broadcasting the display message only to the mutual exclusion icon modules corresponding to the mutual exclusion icons with mutual exclusion relationship. Namely, the icon of the icon module receiving the broadcast has a mutual exclusion relationship with the target icon, so that other icon modules in the display device having the mutual exclusion relationship with the target icon acquire the display message.
Specifically, a plurality of icon modules with mutual exclusion relation are determined in advance in the target icon module according to the mutual exclusion table, and only the display information is broadcasted to the icon modules with mutual exclusion relation, so that invalid message receiving and processing consumption caused by large-area broadcasting can be effectively reduced.
Of course, in the specific implementation process, the manner of broadcasting the display message by the target icon module according to the pre-established subscription protocol is not limited to the above two manners, and the display message may also be broadcasted only to the icon module corresponding to the icon being displayed, which is not limited herein, and is not listed again.
Then, steps S103 and S104 are executed, it should be noted that there is no precedence relationship between step S103 and step S104, and they may be executed simultaneously, or S103 or S104 may be executed first.
Step S103, the other icon modules respectively judge whether the self icon corresponding to the other icon module is mutually exclusive with the target icon according to a pre-stored mutual exclusion table and the received display message, if the self icon is mutually exclusive with the target icon, whether the target time is later than the time corresponding to the display information for appointing to display the self icon is judged, and if the target time is not later than the time, the display attribute of the self icon is set to be hidden.
In the embodiment of the present application, the mutex table may be a list preset by a worker, and icons having a mutex relationship and icon modules corresponding to the icons are arranged together, so as to determine the mutex relationship quickly. The mutual exclusion relationship may be manually set empirically or may be determined based on big data or machine learning algorithms, and is not limited herein.
Specifically, after each icon module receives the display message, it can determine whether its corresponding icon is mutually exclusive with the target icon. When each icon corresponds to one module, the icon of the user is the icon corresponding to the icon module; when the icon module corresponds to the N display areas of the display unit, the icon is the icon or the target icon currently displayed by the display unit corresponding to the icon module.
Specifically, when the icon module determines that the corresponding self icon is mutually exclusive from the target icon, it determines whether the time of the display message indicating that the self icon is displayed is before the target time according to the display message received before the icon module, and if so, it needs to change or keep the display attribute of the self icon to be hidden so that the icon included in the display message with the latest time is displayed.
Judging whether the target time is later than the time corresponding to the display information for displaying the self icon, and further comprising: if not, the current display attribute of the self icon is kept. That is, the self icon is kept displayed if it is in the display state, and is kept hidden if it is in the hidden state.
Step S104, the target icon module judges whether the target time is the latest time in the mutual exclusion time according to the mutual exclusion table and the received display message, if so, the display attribute of the target icon is set to be displayed; and the mutual exclusion time is used for appointing and displaying time corresponding to the display information of the icon mutually exclusive with the target icon.
Specifically, the target icon module receives display messages broadcast by other icon modules, so that it can be determined whether the target time of the target icon is the latest time among the times included in the display messages indicating all mutually exclusive icons having a mutually exclusive relationship with the target icon, according to the previously received display messages and the mutually exclusive table, and if so, the display attribute of the target icon is changed or maintained to be displayed; and if not, setting the display attribute of the target icon to be hidden.
And if the self icon of the icon module which receives the broadcast is not mutually exclusive with the target icon and is not the target icon, indicating that the self icon is not influenced by the display message received at the time, and keeping the current display attribute of the self icon unchanged.
Through the arrangement, the icon module can receive all display messages indicating the display icons through receiving the broadcast of other icon modules, or the icon module can receive the display messages indicating all mutually exclusive icons with mutually exclusive relation. Therefore, the icon module can judge whether the icon corresponding to the icon module is the icon which is required to be displayed last in the icons with the mutual exclusion relationship, if so, the icon is displayed, so that the icons displayed in different areas of the display unit of the display device at the same time are ensured not to have the mutual exclusion relationship, and only the icon which is indicated to be displayed last in the icons with the mutual exclusion relationship is displayed.
In the embodiment of the application, under the condition that the display attribute of the target icon needs to be set to be hidden, that is, the target icon is not displayed temporarily, the target icon can be cached, and the target icon is stored in a storage linked list, so that the target icon is displayed according to rules after the display of the mutual exclusion icon is finished.
Specifically, in order to facilitate the sequential and orderly display of the current hidden icons, the storage positions of the target icons in the storage linked list can be determined according to the time of the top display of the target icons, wherein the elements in the storage linked list are sequentially arranged from first to second according to the time; after the storage position is determined, the target icon is linked with the elements connected behind the storage position, and then the target icon is linked with the elements connected in front of the storage position, so that the target icon is stored in the storage linked list as one element; and after the display of the mutual exclusion icon is finished, sequentially displaying the elements stored in the storage linked list according to the sequence in the storage linked list.
The method comprises the steps of firstly linking the target icon with the elements connected behind the storage position, and then linking the target icon with the elements connected in front of the storage position, wherein the fact that the storage linked list always points to the next position from the previous position is considered, if the linked list is linked with the previous elements firstly, the linked list is broken from front to back, and the next element cannot be determined.
Specifically, when the display time of a certain icon displayed on the display device reaches and is not displayed any more, if a new display message issued by the server is not received, a new display area is vacated, and at this time, the icons can be sequentially selected for display according to the sequence in the storage linked list in combination with the judgment of mutual exclusion. I.e. icons which are preferentially displayed in the storage linked list and have no mutual exclusive relationship with the currently displayed icons.
Based on the same inventive concept, the application also provides a method applied to the server side corresponding to the method in the first embodiment, which is described in detail in the second embodiment.
Example two
In this embodiment, a method for processing mutual exclusion is provided, as shown in fig. 2, the method includes:
step S201, after receiving a request for displaying a target icon, generating a display message, wherein the display message comprises the target icon which is appointed to be displayed and target time corresponding to the display message;
step S202, sending the display message to a target icon module of a display device, wherein the target icon module is a module corresponding to the target icon; and the target icon module broadcasts the display message according to a pre-established subscription protocol so as to enable other icon modules in the display equipment to acquire the display message, and the target icon module and the other icon modules can determine and set the display attribute of the icon corresponding to the target icon module and the other icon modules based on the received display message and a pre-stored mutual exclusion table, so that only the icon corresponding to the display information of the icon with the latest time is displayed in the mutually exclusive icons.
Since the method described in the second embodiment of the present invention is a method for implementing the method of the first embodiment of the present invention on the server side, based on the method described in the first embodiment of the present invention, those skilled in the art can understand the specific implementation steps of the method, and thus details are not described herein.
Based on the same inventive concept, the embodiment of the invention also provides a device corresponding to the method in the first embodiment, which is shown in the third embodiment.
EXAMPLE III
The present embodiment provides a mutually exclusive processing apparatus, as shown in fig. 3, the apparatus includes:
a receiving module 301, configured to receive display messages sent by a server to a target icon module, where the display messages all include a target icon designated for display and a target time corresponding to the display message, and the target icon module is a module corresponding to the target icon;
a broadcasting module 302, configured to broadcast the display message according to a pre-established subscription protocol by the target icon module, so that other icon modules in the display device acquire the display message;
a first processing module 303, configured to, by the other icon modules, respectively determine, according to a pre-stored mutex table and a received display message, whether a self icon corresponding to the self icon is mutex with the target icon, and if the self icon is mutex with the target icon, determine whether the target time is later than a time corresponding to display information for specifying to display the self icon, and if so, set a display attribute of the self icon to be hidden;
a second processing module 304, configured to, by the target icon module, determine whether the target time is the latest time in the mutex time according to the mutex table and the received display message, and if so, set a display attribute of the target icon to display; and the mutual exclusion time is used for appointing and displaying time corresponding to the display information of the icon mutually exclusive with the target icon.
Since the apparatus described in the third embodiment of the present invention is an apparatus used for implementing the method of the first embodiment of the present invention, based on the method described in the first embodiment of the present invention, a person skilled in the art can understand the specific structure and the deformation of the apparatus, and thus the details are not described herein. All the devices adopted in the method of the first embodiment of the present invention belong to the protection scope of the present invention.
Based on the same inventive concept, the embodiment of the invention also provides a device corresponding to the method in the second embodiment, which is shown in the fourth embodiment.
Example four
The present embodiment provides a mutually exclusive processing apparatus, as shown in fig. 4, the apparatus includes:
a generating module 401, configured to generate a display message after receiving a request for displaying a target icon, where the display message includes a specified displayed target icon and a target time corresponding to the display message;
a sending module 402, configured to send the display message to a target icon module of a display device, where the target icon module is a module corresponding to the target icon; and the target icon module broadcasts the display message according to a pre-established subscription protocol so as to enable other icon modules in the display equipment to acquire the display message, and the target icon module and the other icon modules can determine and set the display attribute of the icon corresponding to the target icon module and the other icon modules based on the received display message and a pre-stored mutual exclusion table, so that only the icon corresponding to the display information of the icon with the latest time is displayed in the mutually exclusive icons.
Since the apparatus described in the fourth embodiment of the present invention is an apparatus used for implementing the method of the second embodiment of the present invention, a person skilled in the art can understand the specific structure and the deformation of the apparatus based on the method described in the second embodiment of the present invention, and thus the details are not described herein. All the devices adopted by the method of the second embodiment of the invention belong to the protection scope of the invention.
Based on the same inventive concept, the application provides an electronic device embodiment corresponding to the first embodiment or the second embodiment, which is detailed in the fifth embodiment.
EXAMPLE five
The present embodiment provides an electronic device, as shown in fig. 5, which includes a memory 510, a processor 520, and a computer program 511 stored in the memory 510 and capable of running on the processor 520, and when the processor 520 executes the computer program 511, the electronic device may implement any implementation manner of the first embodiment or the second embodiment.
Since the electronic device described in this embodiment is a device used for implementing the method in the first embodiment or the second embodiment of this application, based on the method described in the first embodiment or the second embodiment of this application, a person skilled in the art can understand the specific implementation manner of the electronic device in this embodiment and various variations thereof, and therefore, how to implement the method in this embodiment of this application by the electronic device is not described in detail herein. The equipment used by those skilled in the art to implement the methods in the embodiments of the present application is within the scope of the present application.
Based on the same inventive concept, the present application provides a storage medium corresponding to embodiment one or embodiment two, which is described in detail in embodiment six.
EXAMPLE six
The present embodiment provides a computer-readable storage medium 600, as shown in fig. 6, on which a computer program 611 is stored, and when the computer program 611 is executed by a processor, the implementation of any one of the first embodiment or the second embodiment can be implemented.
The technical scheme provided in the embodiment of the application at least has the following technical effects or advantages:
when issuing a display message indicating to display a target icon, a server sends the message to a target icon module corresponding to the target icon, and the target icon module broadcasts based on the display message so as to enable other icon modules in display equipment to acquire the display message; and the other icon modules and the target icon module can judge whether the indication display time of the self icon corresponding to the other icon module is the latest time in the mutual exclusion time or not according to the pre-stored mutual exclusion table and the received display message respectively, and if so, the display attribute of the self icon is set to be displayed. Therefore, all the display messages issued by the server can be obtained by each icon module through broadcasting, so that whether the icon corresponding to the icon is the last indicated icon in the icons with the mutual exclusion relationship or not can be determined according to all the display messages, if so, the icon is displayed, and therefore, only the last indicated icon in the icons with the mutual exclusion relationship can be displayed on the display equipment, the problem that the mutual influence of the mutual exclusion icons is avoided, and the click quantity and the participation quantity of the corresponding application or activity of each icon are guaranteed.
Furthermore, all display messages are acquired by all the icon modules in a broadcasting mode, and a server is not required to issue all the messages to all the icon modules, so that the consumption of network resources can be effectively reduced.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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 invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. 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 preferred embodiments of the present invention 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 such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (10)

1. A mutual exclusion processing method, the method comprising:
receiving display messages sent to a target icon module by a server, wherein the display messages all comprise designated displayed target icons and target time corresponding to the display messages, and the target icon module is a module corresponding to the target icons;
the target icon module broadcasts the display message according to a pre-established subscription protocol so as to enable other icon modules in the display equipment to acquire the display message;
the other icon modules judge whether the self icon corresponding to the other icon module is mutually exclusive with the target icon according to a pre-stored mutual exclusion table and the received display message, if the self icon is mutually exclusive with the target icon, whether the target time is later than the time corresponding to the display information for appointing to display the self icon is judged, and if the target time is mutually exclusive with the target icon, the display attribute of the self icon is set to be hidden;
the target icon module judges whether the target time is the latest time in the mutually exclusive time or not according to the mutually exclusive table and the received display message, and if so, the display attribute of the target icon is set to be displayed; and the mutual exclusion time is used for appointing and displaying time corresponding to the display information of the icon mutually exclusive with the target icon.
2. The method of claim 1, wherein each of the icon modules corresponds to a display area of a display unit, and each of the icons of the icon modules is an icon that is displayed or can be displayed on the corresponding display area.
3. The method of claim 1, wherein:
and if the self icon is not mutually exclusive with the target icon and the self icon is not the target icon, maintaining the current display attribute of the self icon.
4. The method of claim 1, wherein the target icon module broadcasts the display message according to a pre-established subscription protocol to cause other icon modules in a display device to retrieve the display message, comprising:
and the target icon module broadcasts the display message according to a pre-established subscription protocol and a pre-stored mutual exclusion table, so that other icon modules in the display equipment, which have a mutual exclusion relationship with the target icon, acquire the display message.
5. The method of claim 1,
the determining whether the target time is later than a time corresponding to display information for specifying the display of the self icon further includes:
if not, keeping the current display attribute of the self icon;
the determining whether the target time is after the latest time in the mutually exclusive time further includes:
and if not, setting the display attribute of the target icon to be hidden.
6. A mutual exclusion processing method, the method comprising:
generating a display message after receiving a request for displaying a target icon, wherein the display message comprises the target icon which is appointed to be displayed and target time corresponding to the display message;
sending the display message to a target icon module of a display device, wherein the target icon module is a module corresponding to the target icon; and the target icon module broadcasts the display message according to a pre-established subscription protocol so as to enable other icon modules in the display equipment to acquire the display message, and the target icon module and the other icon modules can determine and set the display attribute of the icon corresponding to the target icon module and the other icon modules based on the received display message and a pre-stored mutual exclusion table, so that only the icon corresponding to the display information of the icon with the latest time is displayed in the mutually exclusive icons.
7. A mutually exclusive processing apparatus, the apparatus comprising:
the system comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving display messages sent by a server to a target icon module, the display messages all comprise designated displayed target icons and target time corresponding to the display messages, and the target icon module is a module corresponding to the target icons;
the broadcasting module is used for broadcasting the display message by the target icon module according to a pre-established subscription protocol so as to enable other icon modules in the display equipment to acquire the display message;
the first processing module is used for judging whether the self icon corresponding to the other icon modules is mutually exclusive with the target icon or not according to a pre-stored mutual exclusion table and the received display message respectively by the other icon modules, judging whether the target time is later than the time corresponding to the display information for appointing to display the self icon or not if the self icon is mutually exclusive with the target icon, and if the target time is later than the time corresponding to the display information for appointing to display the self icon, setting the display attribute of the self icon to be hidden;
the second processing module is used for judging whether the target time is the latest time in the mutual exclusion time or not by the target icon module according to the mutual exclusion table and the received display message, and if so, setting the display attribute of the target icon to be display; and the mutual exclusion time is used for appointing and displaying time corresponding to the display information of the icon mutually exclusive with the target icon.
8. A mutually exclusive processing apparatus, the apparatus comprising:
the device comprises a generating module, a display module and a processing module, wherein the generating module is used for generating a display message after receiving a request of displaying a target icon, and the display message comprises a specified displayed target icon and a target time corresponding to the display message;
the sending module is used for sending the display message to a target icon module of the display equipment, wherein the target icon module is a module corresponding to the target icon; and the target icon module broadcasts the display message according to a pre-established subscription protocol so as to enable other icon modules in the display equipment to acquire the display message, and the target icon module and the other icon modules can determine and set the display attribute of the icon corresponding to the target icon module and the other icon modules based on the received display message and a pre-stored mutual exclusion table, so that only the icon corresponding to the display information of the icon with the latest time is displayed in the mutually exclusive icons.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-6 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 6.
CN201811154967.XA 2018-09-30 2018-09-30 Mutual exclusion processing method, device, equipment and medium Active CN109388498B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811154967.XA CN109388498B (en) 2018-09-30 2018-09-30 Mutual exclusion processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811154967.XA CN109388498B (en) 2018-09-30 2018-09-30 Mutual exclusion processing method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN109388498A CN109388498A (en) 2019-02-26
CN109388498B true CN109388498B (en) 2020-05-12

Family

ID=65419163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811154967.XA Active CN109388498B (en) 2018-09-30 2018-09-30 Mutual exclusion processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN109388498B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7363593B1 (en) * 2001-11-30 2008-04-22 Versata Development Group, Inc. System and method for presenting information organized by hierarchical levels
CN103955474A (en) * 2014-03-31 2014-07-30 可牛网络技术(北京)有限公司 Notification message processing method and device
CN104471920A (en) * 2013-06-19 2015-03-25 华为终端有限公司 Method and Apparatus for Processing Data and Message
CN105574421A (en) * 2016-01-06 2016-05-11 珠海市魅族科技有限公司 Method and device for displaying and hiding application icon
US9442625B1 (en) * 2002-06-25 2016-09-13 Eric J. Luttmann Visual indication of a device connection speed
WO2017004141A1 (en) * 2015-06-29 2017-01-05 Promethean Limited Systems and methods for providing multi-focus to applications for collaboration
CN106572397A (en) * 2016-10-31 2017-04-19 北京小米移动软件有限公司 Interaction method and device for live video application
CN106598371A (en) * 2015-10-15 2017-04-26 阿里巴巴集团控股有限公司 Information displaying method and equipment
CN106792113A (en) * 2016-12-06 2017-05-31 深圳Tcl新技术有限公司 The afoul reminding method of recording time, device and intelligent television
CN106933465A (en) * 2015-12-31 2017-07-07 北京三星通信技术研究有限公司 A kind of content display method and intelligence desktop terminal based on intelligence desktop
CN106959795A (en) * 2017-02-23 2017-07-18 北京潘达互娱科技有限公司 A kind of icon shows method and device in live application
CN108366287A (en) * 2018-01-30 2018-08-03 广州虎牙信息科技有限公司 Direct broadcasting room action message methods of exhibiting and computer storage media, terminal

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7363593B1 (en) * 2001-11-30 2008-04-22 Versata Development Group, Inc. System and method for presenting information organized by hierarchical levels
US9442625B1 (en) * 2002-06-25 2016-09-13 Eric J. Luttmann Visual indication of a device connection speed
CN104471920A (en) * 2013-06-19 2015-03-25 华为终端有限公司 Method and Apparatus for Processing Data and Message
CN103955474A (en) * 2014-03-31 2014-07-30 可牛网络技术(北京)有限公司 Notification message processing method and device
WO2017004141A1 (en) * 2015-06-29 2017-01-05 Promethean Limited Systems and methods for providing multi-focus to applications for collaboration
CN106598371A (en) * 2015-10-15 2017-04-26 阿里巴巴集团控股有限公司 Information displaying method and equipment
CN106933465A (en) * 2015-12-31 2017-07-07 北京三星通信技术研究有限公司 A kind of content display method and intelligence desktop terminal based on intelligence desktop
CN105574421A (en) * 2016-01-06 2016-05-11 珠海市魅族科技有限公司 Method and device for displaying and hiding application icon
CN106572397A (en) * 2016-10-31 2017-04-19 北京小米移动软件有限公司 Interaction method and device for live video application
CN106792113A (en) * 2016-12-06 2017-05-31 深圳Tcl新技术有限公司 The afoul reminding method of recording time, device and intelligent television
CN106959795A (en) * 2017-02-23 2017-07-18 北京潘达互娱科技有限公司 A kind of icon shows method and device in live application
CN108366287A (en) * 2018-01-30 2018-08-03 广州虎牙信息科技有限公司 Direct broadcasting room action message methods of exhibiting and computer storage media, terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
RFID环境下利用通报机制的分布式阅读器防冲突算法;顾成喜,顾才东,龚伟;《计算机应用研究》;20170630;1745-1749 *
基于交互元素的扁平化设计可用性问题研究;杨琴;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20180415;C028-36 *

Also Published As

Publication number Publication date
CN109388498A (en) 2019-02-26

Similar Documents

Publication Publication Date Title
EP2914040B1 (en) Terminal and synchronization control method thereof
US20180242177A1 (en) Monitoring management method and apparatus
CN104301140A (en) Service request responding method, device and system
JP2017539103A (en) Method, apparatus, server, and system for synchronizing member gain among multiple apparatuses
CN109618174A (en) A kind of live data transmission method, device, system and storage medium
CN110768803B (en) Television wall display method and device and server
CN109218817B (en) Method and device for displaying virtual gift prompting message
CN110691331B (en) Conference demonstration method and device based on Bluetooth mesh technology and terminal equipment
CN109309858B (en) Display method, device, equipment and medium of mutually exclusive icon
CN103685430A (en) A mobile terminal combined display method, a system, and a server
CN110955504B (en) Method, server, system and storage medium for intelligently distributing rendering tasks
CN109388498B (en) Mutual exclusion processing method, device, equipment and medium
CN106682198B (en) Method and device for realizing automatic database deployment
CN108966034B (en) Virtual article display method, device and storage medium
CN110971954B (en) Method, device, equipment and medium for displaying icons at different positions
CN103678332A (en) System, browser and method for displaying page
CN116703071A (en) Resource sharing method, device and equipment and storage medium
CN109407922B (en) Icon display control method, device, equipment and medium
CN110188140A (en) Data pull method, apparatus, storage medium and computer equipment
CN110266438B (en) Data transmission method, device and system and computer readable storage medium
CN114139731A (en) Longitudinal federated learning modeling optimization method, apparatus, medium, and program product
CN111309467B (en) Task distribution method and device, electronic equipment and storage medium
CN110324377B (en) Push interaction method and device, electronic equipment and medium
CN114090687A (en) Data synchronization method and device
CN103902573A (en) Method and device for displaying traffic line mark maps

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