CN108563493A - A kind of event-driven method, device, equipment and readable storage medium storing program for executing - Google Patents
A kind of event-driven method, device, equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN108563493A CN108563493A CN201810325490.0A CN201810325490A CN108563493A CN 108563493 A CN108563493 A CN 108563493A CN 201810325490 A CN201810325490 A CN 201810325490A CN 108563493 A CN108563493 A CN 108563493A
- Authority
- CN
- China
- Prior art keywords
- event
- socket
- object event
- asynchronous
- handles
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/466—Transaction processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3017—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is implementing multitasking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of event-driven methods, and this approach includes the following steps:The fd handles of asynchronous socket are monitored using select functions, and judge whether the object event on asynchronous socket is readable according to fd handles;If object event is readable, reads object event and obtain the event type belonging to object event;Select event handling mode processing target event corresponding with event type.Compared to existing waiting mechanism, method provided in an embodiment of the present invention may not need and ceaselessly check input equipment, but wait for object event, that is, the arrival to wait for the arrival of news.If waited for without message, control is handed back to operating system, to run other programs, occupancy computer resource can be reduced, promotes the calculating speed and event handling ability of computer, and then promote computer performance.The invention also discloses a kind of event-driven device, equipment and readable storage medium storing program for executing, have corresponding technique effect.
Description
Technical field
The present invention relates to computer application technology, more particularly to a kind of event-driven method, device, equipment and can
Read storage medium.
Background technology
In current allegro life, people's active demand has the high property of stronger calculating speed and event handling ability
It can computer.
In computer software, waiting mechanism is often used.That is, in order to wait for the generation of something, need constantly
Certain judgment variables are detected, until reaching preset condition, are just handled accordingly.And constantly detecting certain variables
During, many computer resources are virtually wasted, and then limit computer and promote calculating speed, event handling energy
Power.
It is that current those skilled in the art are badly in need of in conclusion how to efficiently solve the problems such as promoting computer performance
The technical issues of solution.
Invention content
The object of the present invention is to provide a kind of event-driven method, device, equipment and readable storage medium storing program for executing, are accounted for real reduce
With computer resource, computer performance is promoted.
In order to solve the above technical problems, the present invention provides the following technical solutions:
A kind of event-driven method, including:
The fd handles of asynchronous socket are monitored using select functions, and the asynchronous socket is judged according to the fd handles
Whether the object event on word is readable;
If the object event is readable, reads the object event and obtain the event class belonging to the object event
Type;
Event handling mode corresponding with the event type is selected to handle the object event.
Preferably, described that the object event is handled based on the event type corresponding processing mode, including:
When the event type is message event, mesh described in the corresponding default processing function pair of the object event is utilized
Mark event is handled.
Preferably, described that the object event is handled based on the event type corresponding processing mode, including:
When the event type is time-event, timed thread is created;
After reaching default waiting time, by the timed thread send preset custom protocol target data to
On the asynchronous socket of target, so that the asynchronous socket of the target excites default call back function to handle the object event.
Preferably, described that the object event is handled based on the event type corresponding processing mode, including:
When the event type is filec descriptor event, target user is specified by corresponding filec descriptor
Socket is adjusted to asynchronous mode;
The socket is monitored by the select functions, when registered events occur on the socket, readjustment
The call back function of target user's registration.
A kind of event-driven device, including:
Module, the fd handles for monitoring asynchronous socket using select functions are monitored, and is sentenced according to the fd handles
Whether the object event to break on the asynchronous socket is readable;
Object event and event type acquisition module read the object event if readable for the object event
And obtain the event type belonging to the object event;
Object event processing module, for selecting event handling mode corresponding with the event type to handle the target
Event.
Preferably, the object event processing module, including:
Message event processing unit, for when the event type is message event, being corresponded to using the object event
Default processing function pair described in object event handled.
Preferably, the object event processing module, including:
Time-event processing unit, for when the event type is time-event, creating timed thread;It is pre- when reaching
If after waiting time, the target data for presetting custom protocol is sent to the asynchronous socket of target by the timed thread
On, so that the asynchronous socket of the target excites default call back function to handle the object event.
Preferably, the object event processing module, including:
Filec descriptor event handling unit, for when the event type is filec descriptor event, passing through correspondence
Filec descriptor the socket that target user specifies is adjusted to asynchronous mode;The set is monitored by the select functions
Word is connect, when registered events occur on the socket, adjusts back the call back function of target user's registration.
A kind of event-driven equipment, including:
Memory, for storing computer program;
Processor, the step of above-mentioned event-driven method is realized when for executing the computer program.
A kind of readable storage medium storing program for executing is stored with computer program, the computer program quilt on the readable storage medium storing program for executing
The step of processor realizes above-mentioned event-driven method when executing.
The method provided using the embodiment of the present invention monitors the fd handles of asynchronous socket using select functions, and
Judge whether the object event on asynchronous socket is readable according to fd handles;If object event is readable, object event is read simultaneously
Obtain the event type belonging to object event;Select event handling mode processing target event corresponding with event type.It utilizes
The fd handles that select functions monitor asynchronous socket realize asynchronous mechanism.That is, when there is object event that can read, at this time may be used
To directly read the data on the asynchronous socket without blocking.In addition, compared to existing waiting mechanism, the present invention is implemented
The method that example provides, which may not need, ceaselessly checks input equipment, but waits for object event, that is, the arrival to wait for the arrival of news.
Due to realizing asynchronous mechanism, the object event each inputted can be passed into queue, wait for according to the corresponding processing of event type
Mode is handled.If waited for without message, control is handed back to operating system, to run other programs, can be reduced
Computer resource is occupied, promotes the calculating speed and event handling ability of computer, and then promote computer performance.
Correspondingly, the embodiment of the present invention additionally provides a kind of event-driven device, equipment and readable storage medium storing program for executing, has upper
Technique effect is stated, details are not described herein.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of implementing procedure figure of event-driven method in the embodiment of the present invention;
Fig. 2 is a kind of implementing procedure figure of event-driven method in the embodiment of the present invention;
Fig. 3 is a kind of implementing procedure figure of event-driven method in the embodiment of the present invention;
Fig. 4 is a kind of implementing procedure figure of event-driven method in the embodiment of the present invention;
Fig. 5 is using a kind of event model signal of the event module of event driven program provided in an embodiment of the present invention
Figure;
Fig. 6 is a kind of structural schematic diagram of event-driven device in the embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of event-driven equipment in the embodiment of the present invention.
Specific implementation mode
Core of the invention is to provide a kind of event-driven method, in the event of processing, the process type program of skimming traditional
In waiting mechanism, but introduce event programme.Wherein, it in waiting mechanism, in order to wait for the generation of something, needs not
Certain judgment variables are detected disconnectedly.After event programme, this process, event driven program and mistake are enormously simplified
The maximum difference of formula program is that event driven program is without ceaselessly checking input equipment, but what is waited for the arrival of news arrives
Come, the message each inputted can be passed into queue, and waiting is handled according to the corresponding processing mode of event type.If no
Message is waiting for, then control can be handed back to operating system by program, and to run other programs, computer money is occupied to reduce with this
Source promotes computer calculating speed and processing capacity, further promotes computer performance.
Another core of the present invention is to provide a kind of event-driven device, equipment and readable storage medium storing program for executing, has above-mentioned
Technique effect, details are not described herein.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Lower obtained every other embodiment, shall fall within the protection scope of the present invention.
Embodiment one:
Referring to FIG. 1, Fig. 1 is a kind of flow chart of event-driven method in the embodiment of the present invention, this method includes following
Step:
S101, the fd handles that asynchronous socket is monitored using select functions, and asynchronous socket is judged according to fd handles
On object event it is whether readable.
In embodiments of the present invention, the fd handles of asynchronous socket are monitored using select functions, and are sentenced according to fd handles
Whether the object event to break on asynchronous socket is readable.
Wherein, object event may include (such as mouse, KeyEvent) from the user, (such as clock from hardware
Event etc.) and (such as operating system, application program itself) from software event.
If S102, object event are readable, read object event and obtain the event type belonging to object event.
When the object event can be read, the object event can be directly read and obtain the event belonging to the object event
Type.Specifically, the event type of object event can be obtained according to pre-defined criterion.
S103, selection event handling mode processing target event corresponding with event type.
In embodiments of the present invention, it can pre-set which kind of event handling mode different event types corresponds to respectively.
Certainly the processing mode for being directed to same event type may be the same or different in specific implementation.Wherein, event type
Message event, time-event and filec descriptor event can be divided into.It selects at event handling mode corresponding with event type
Object event is managed, the treatment effeciency and accuracy rate of object event can also be improved.
The method provided using the embodiment of the present invention, the method provided using the embodiment of the present invention, utilizes select
Function monitors the fd handles of asynchronous socket, and judges whether the object event on asynchronous socket is readable according to fd handles;If
Object event is readable, then reads object event and obtain the event type belonging to object event;It selects corresponding with event type
Event handling mode processing target event.The fd handles that asynchronous socket is monitored using select functions realize asynchronous mechanism.That is,
When there is object event that can read, the data on the asynchronous socket can be directly read at this time without blocking.In addition, phase
Compared with existing waiting mechanism, method provided in an embodiment of the present invention may not need and ceaselessly check input equipment, but wait for
Object event, that is, the arrival that waits for the arrival of news.Due to realizing asynchronous mechanism, the object event each inputted can be passed into team
Row, waiting are handled according to the corresponding processing mode of event type.If waited for without message, control is handed back to behaviour
Make system, to run other programs, occupancy computer resource can be reduced, promotes the calculating speed and event handling energy of computer
Power, and then promote computer performance.
It should be noted that being based on above-described embodiment one, the embodiment of the present invention additionally provides the scheme of being correspondingly improved.Rear
Involved in continuous embodiment with can mutually be referred between same steps or corresponding steps in above-described embodiment one, corresponding advantageous effect
Also can be cross-referenced, it is no longer repeated one by one in improvement embodiment below.
Embodiment two:
Referring to FIG. 2, Fig. 2 is a kind of flow chart of event-driven method in the embodiment of the present invention, this method includes following
Step:
S201, the fd handles that asynchronous socket is monitored using select functions, and asynchronous socket is judged according to fd handles
On object event it is whether readable;
If S202, object event are readable, read object event and obtain the event type belonging to object event;
S203, when event type be message event when, utilize the corresponding default processing function pair object event of object event
It is handled.
In step S203, after reading the object event that event type is message event, order can be with application process profit
It is handled with the corresponding default processing function pair object event of object event.Application program call back function recycles supervision application journey
Sequence queue discharges control after having executed according to message package parameter processing difference affairs.The advantage of doing so is that by initiative
Operating system is given, is distributed by system call and executes the time, realizes that multitask executes.
That is, the present embodiment is having except advantageous effect possessed by embodiment one, also because it realizes message
Event handling so that computer system can execute the time with dispatching distribution, realize that multitask executes, further promote computer
Processing capacity.
Embodiment three:
Referring to FIG. 3, Fig. 3 is a kind of flow chart of event-driven method in the embodiment of the present invention, this method includes following
Step:
S301, the fd handles that asynchronous socket is monitored using select functions, and asynchronous socket is judged according to fd handles
On object event it is whether readable;
If S302, object event are readable, read object event and obtain the event type belonging to object event;
S303, when event type be time-event when, create timed thread;
S304, after reaching default waiting time, pass through timed thread send preset custom protocol target data
Onto the asynchronous socket of target, presets call back function so as to the asynchronous socket excitation of target and carry out processing target event.
It is illustrated for ease of description, below combining above-mentioned steps S303 and S304.
It, i.e., can be in inside modules when one time-triggered protocol event of user's registration when object event is time-event
When creating a timed thread for stand-by period arrival scheduled duration, pass through the data that the timed thread sends custom protocol
Onto the asynchronous socket of target, readjustment user is set according to custom protocol after excitation reading event on the asynchronous socket of target
The time-triggered protocol function of registration.It can ensure that other events are not rushed with time-event in event module used here as asynchronous socket
It is prominent, other event handler procedures will not be interrupted.
That is, in the present embodiment, having except advantageous effect possessed by embodiment one, in the present embodiment
In, also achieve time-event processing.Time-event processing provided in this embodiment is also because using asynchronous socket, to ensure
Other events do not conflict with time-event in event module, and will not interrupt other event handler procedures will not interfere, ensure that
The stability of computer events processing, further improves computer performance.
Example IV:
Referring to FIG. 4, Fig. 4 is a kind of flow chart of event-driven method in the embodiment of the present invention, this method includes following
Step:
S401, the fd handles that asynchronous socket is monitored using select functions, and asynchronous socket is judged according to fd handles
On object event it is whether readable;
If S402, object event are readable, read object event and obtain the event type belonging to object event;
S403, when event type be filec descriptor event when, target user is specified by corresponding filec descriptor
Socket be adjusted to asynchronous mode;
S404, socket is monitored by select functions, when registered events occur on socket, adjusts back target user
The call back function of registration.
It is illustrated for ease of description, below combining above-mentioned steps S403 and S404.
When the event type of object event is filec descriptor event, by corresponding filec descriptor target user
It registers socket to be processed and is changed to asynchronous mode, the multiple filec descriptors of user and inside are monitored by select functions simultaneously
The socket file descriptor that uses of time-event.In this way, target user can be directed to filec descriptor to call back function
The operations such as registered, read and write, being closed.
That is, in the present embodiment, having except advantageous effect possessed by embodiment one, in the present embodiment
In, also achieve filec descriptor event handling.That is user can be square in the method provided using the embodiment of the present invention
The operations such as just registered, read and write, being closed to call back function for filec descriptor.
The event-driven method that the embodiment of the present invention is provided is applied for ease of those skilled in the art, below with specific
For application scenarios, to how the event-driven method provided in the practical application embodiment of the present invention illustrates.
Referring to FIG. 5, in practical applications, can will realize the meter of the event-driven method provided in foregoing invention embodiment
Calculation machine program is as function module or the event module of public module, so that user is programmed using event driven manner.
The event module is monitored event source, after object event occurs, carries out event queuing, and according to advance
The processing mode of setting carries out event distribution, that is, notifies corresponding event processor to handle the object event.If certain object event
It further relates to create timed thread for time-event, the time-event is handled later to reach preset duration.Wherein, energy
The object for enough generating event all can serve as event source, such as IO Input/Output Devices, clock, timer, network interface etc..
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of event-driven device, is described below
Event-driven device can correspond reference with above-described event-driven method.
Shown in Figure 6, which comprises the following modules:
Module 101, the fd handles for monitoring asynchronous socket using select functions are monitored, and is judged according to fd handles
Whether the object event on asynchronous socket is readable;
If object event and event type acquisition module 102 read object event and obtain readable for object event
Event type belonging to object event;
Object event processing module 103, for selecting event handling mode processing target event corresponding with event type.
The device provided using the embodiment of the present invention, the method provided using the embodiment of the present invention, utilizes select
Function monitors the fd handles of asynchronous socket, and judges whether the object event on asynchronous socket is readable according to fd handles;If
Object event is readable, then reads object event and obtain the event type belonging to object event;It selects corresponding with event type
Event handling mode processing target event.The fd handles that asynchronous socket is monitored using select functions realize asynchronous mechanism.That is,
When there is object event that can read, the data on the asynchronous socket can be directly read at this time without blocking.In addition, phase
Compared with existing waiting mechanism, method provided in an embodiment of the present invention may not need and ceaselessly check input equipment, but wait for
Object event, that is, the arrival that waits for the arrival of news.Due to realizing asynchronous mechanism, the object event each inputted can be passed into team
Row, waiting are handled according to the corresponding processing mode of event type.If waited for without message, control is handed back to behaviour
Make system, to run other programs, occupancy computer resource can be reduced, promotes the calculating speed and event handling energy of computer
Power, and then promote computer performance.
In a kind of specific implementation mode of the present invention, object event processing module 103, including:
Message event processing unit, for when event type is message event, utilizing the corresponding default place of object event
Reason function pair object event is handled.
In a kind of specific implementation mode of the present invention, object event processing module 103, including:
Time-event processing unit, for when event type is time-event, creating timed thread;It is default etc. when reaching
After waiting for duration, sent by timed thread in the target data to the asynchronous socket of target for presetting custom protocol, so as to mesh
It marks the asynchronous default call back function of socket excitation and carrys out processing target event.
In a kind of specific implementation mode of the present invention, object event processing module 103, including:
Filec descriptor event handling unit, for when event type is filec descriptor event, passing through corresponding text
The socket that target user specifies is adjusted to asynchronous mode by part descriptor;Socket is monitored by select functions, when covering
When connecing generation registered events on word, the call back function of readjustment target user's registration.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of event-driven equipment, is described below
A kind of event-driven equipment can correspond reference with a kind of above-described event-driven method.
Shown in Figure 7, which includes:
Memory D1, for storing computer program;
Processor D2, when for executing computer program the step of the event-driven method of realization above method embodiment.
In practical applications, event-driven equipment is specifically as follows the event-driven side provided using the embodiment of the present invention
The event monitor of method.That is, system resource overhead can be reduced using the time monitor of asynchronous mechanism, response speed is improved.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of readable storage medium storing program for executing, is described below
A kind of readable storage medium storing program for executing can correspond reference with a kind of above-described event-driven method.
A kind of readable storage medium storing program for executing is stored with computer program on readable storage medium storing program for executing, and computer program is held by processor
The step of event-driven method of above method embodiment is realized when row.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with it is other
The difference of embodiment, just to refer each other for same or similar part between each embodiment.For being filled disclosed in embodiment
For setting, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is referring to method part
Explanation.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, depends on the specific application and design constraint of technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Principle and implementation of the present invention are described for specific case used herein, and above example is said
It is bright to be merely used to help understand technical scheme of the present invention and its core concept.It should be pointed out that for the common of the art
, without departing from the principle of the present invention, can be with several improvements and modifications are made to the present invention for technical staff, these
Improvement and modification are also fallen within the protection scope of the claims of the present invention.
Claims (10)
1. a kind of event-driven method, which is characterized in that including:
The fd handles of asynchronous socket are monitored using select functions, and are judged on the asynchronous socket according to the fd handles
Object event it is whether readable;
If the object event is readable, reads the object event and obtain the event type belonging to the object event;
Event handling mode corresponding with the event type is selected to handle the object event.
2. event-driven method according to claim 1, which is characterized in that described to be based on the corresponding place of the event type
Reason mode handles the object event, including:
When the event type is message event, target thing described in the corresponding default processing function pair of the object event is utilized
Part is handled.
3. event-driven method according to claim 1, which is characterized in that described to be based on the corresponding place of the event type
Reason mode handles the object event, including:
When the event type is time-event, timed thread is created;
After reaching default waiting time, the target data for presetting custom protocol is sent to target by the timed thread
On asynchronous socket, so that the asynchronous socket of the target excites default call back function to handle the object event.
4. event-driven method according to claim 1, which is characterized in that described to be based on the corresponding place of the event type
Reason mode handles the object event, including:
When the event type is filec descriptor event, the socket of being specified target user by corresponding filec descriptor
Word is adjusted to asynchronous mode;
The socket is monitored by the select functions, when registered events occur on the socket, described in readjustment
The call back function of target user's registration.
5. a kind of event-driven device, which is characterized in that including:
Module, the fd handles for monitoring asynchronous socket using select functions are monitored, and institute is judged according to the fd handles
Whether the object event stated on asynchronous socket is readable;
Object event and event type acquisition module read the object event and obtain if readable for the object event
Take the event type belonging to the object event;
Object event processing module, for selecting event handling mode corresponding with the event type to handle the target thing
Part.
6. event-driven device according to claim 5, which is characterized in that the object event processing module, including:
Message event processing unit is used for when the event type is message event, corresponding pre- using the object event
If object event is handled described in processing function pair.
7. event-driven device according to claim 5, which is characterized in that the object event processing module, including:
Time-event processing unit, for when the event type is time-event, creating timed thread;It is default etc. when reaching
After waiting for duration, sent by the timed thread in the target data to the asynchronous socket of target for presetting custom protocol, with
Toilet states the asynchronous socket excitation of target and presets call back function to handle the object event.
8. event-driven device according to claim 5, which is characterized in that the object event processing module, including:
Filec descriptor event handling unit, for when the event type is filec descriptor event, passing through corresponding text
The socket that target user specifies is adjusted to asynchronous mode by part descriptor;The socket is monitored by the select functions
Word adjusts back the call back function of target user's registration when registered events occur on the socket.
9. a kind of event-driven equipment, which is characterized in that including:
Memory, for storing computer program;
Processor, realizing the event-driven method as described in any one of Claims 1-4 when for executing the computer program
Step.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program, the meter on the readable storage medium storing program for executing
It is realized when calculation machine program is executed by processor as described in any one of Claims 1-4 the step of event-driven method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810325490.0A CN108563493A (en) | 2018-04-12 | 2018-04-12 | A kind of event-driven method, device, equipment and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810325490.0A CN108563493A (en) | 2018-04-12 | 2018-04-12 | A kind of event-driven method, device, equipment and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108563493A true CN108563493A (en) | 2018-09-21 |
Family
ID=63534839
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810325490.0A Withdrawn CN108563493A (en) | 2018-04-12 | 2018-04-12 | A kind of event-driven method, device, equipment and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108563493A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109767342A (en) * | 2018-12-13 | 2019-05-17 | 中国平安财产保险股份有限公司 | A kind of data processing method, system, terminal and storage medium |
CN111061474A (en) * | 2018-10-16 | 2020-04-24 | 深圳市茁壮网络股份有限公司 | Lamda programming model and data processing method thereof |
CN111124547A (en) * | 2019-12-26 | 2020-05-08 | 中国平安人寿保险股份有限公司 | Task processing method and device |
CN111221642A (en) * | 2018-11-23 | 2020-06-02 | 珠海格力电器股份有限公司 | Data processing method and device, storage medium and terminal |
CN112040317A (en) * | 2020-08-21 | 2020-12-04 | 海信视像科技股份有限公司 | Event response method and display device |
CN112328394A (en) * | 2020-11-03 | 2021-02-05 | 北京信而泰科技股份有限公司 | Method, device and readable medium for processing message sequence in protocol simulation |
CN112416632A (en) * | 2020-12-14 | 2021-02-26 | 五八有限公司 | Event communication method and device, electronic equipment and computer readable medium |
CN112685148A (en) * | 2020-12-07 | 2021-04-20 | 南方电网数字电网研究院有限公司 | Asynchronous communication method and device of mass terminals, computer equipment and storage medium |
CN112995198A (en) * | 2021-03-29 | 2021-06-18 | 中信银行股份有限公司 | Short-connection communication method and device based on socket |
CN113741718A (en) * | 2020-05-29 | 2021-12-03 | 杭州海康威视数字技术股份有限公司 | Control data conversion method and device and master control equipment |
CN116132175A (en) * | 2023-02-16 | 2023-05-16 | 中国人民解放军61660部队 | Event-driven network engine-based remote back door detection method |
CN116302850A (en) * | 2023-05-20 | 2023-06-23 | 北京长亭科技有限公司 | Linux socket connection event monitoring method and device |
CN113741718B (en) * | 2020-05-29 | 2024-06-04 | 杭州海康威视数字技术股份有限公司 | Control data conversion method and device and main control equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090083455A1 (en) * | 2007-09-21 | 2009-03-26 | Mitel Networks Corporation | Centralized polling service |
CN102202094A (en) * | 2011-05-13 | 2011-09-28 | 中兴通讯股份有限公司 | Method and device for processing service request based on HTTP (hyper text transfer protocol) |
CN103107991A (en) * | 2013-01-21 | 2013-05-15 | 深圳远立科技有限公司 | Multiple network visual terminal (NVT) event processing method, network video conference system (NVC) and security and protection monitoring platform |
CN105471838A (en) * | 2015-11-10 | 2016-04-06 | 瑞斯康达科技发展股份有限公司 | Data processing method and device applied to L2TP |
CN106302554A (en) * | 2016-11-08 | 2017-01-04 | 郑州云海信息技术有限公司 | A kind of socket communication means, device and storage device |
-
2018
- 2018-04-12 CN CN201810325490.0A patent/CN108563493A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090083455A1 (en) * | 2007-09-21 | 2009-03-26 | Mitel Networks Corporation | Centralized polling service |
CN102202094A (en) * | 2011-05-13 | 2011-09-28 | 中兴通讯股份有限公司 | Method and device for processing service request based on HTTP (hyper text transfer protocol) |
CN103107991A (en) * | 2013-01-21 | 2013-05-15 | 深圳远立科技有限公司 | Multiple network visual terminal (NVT) event processing method, network video conference system (NVC) and security and protection monitoring platform |
CN105471838A (en) * | 2015-11-10 | 2016-04-06 | 瑞斯康达科技发展股份有限公司 | Data processing method and device applied to L2TP |
CN106302554A (en) * | 2016-11-08 | 2017-01-04 | 郑州云海信息技术有限公司 | A kind of socket communication means, device and storage device |
Non-Patent Citations (2)
Title |
---|
赵鲲: "基于异步I_O模型的双机TCP代理的研究与实现", 《电脑知识与技术》 * |
赵鲲: "基于异步驱动的双机TCP代理的研究与实现", 《中国优秀硕士学位论文全文数据库(电子期刊) 信息科技辑》 * |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111061474A (en) * | 2018-10-16 | 2020-04-24 | 深圳市茁壮网络股份有限公司 | Lamda programming model and data processing method thereof |
CN111061474B (en) * | 2018-10-16 | 2024-04-26 | 深圳市茁壮网络股份有限公司 | Lamda programming device and data processing method thereof |
CN111221642A (en) * | 2018-11-23 | 2020-06-02 | 珠海格力电器股份有限公司 | Data processing method and device, storage medium and terminal |
CN111221642B (en) * | 2018-11-23 | 2023-08-15 | 珠海格力电器股份有限公司 | Data processing method, device, storage medium and terminal |
CN109767342A (en) * | 2018-12-13 | 2019-05-17 | 中国平安财产保险股份有限公司 | A kind of data processing method, system, terminal and storage medium |
CN111124547A (en) * | 2019-12-26 | 2020-05-08 | 中国平安人寿保险股份有限公司 | Task processing method and device |
CN111124547B (en) * | 2019-12-26 | 2024-03-19 | 中国平安人寿保险股份有限公司 | Task processing method and device |
CN113741718A (en) * | 2020-05-29 | 2021-12-03 | 杭州海康威视数字技术股份有限公司 | Control data conversion method and device and master control equipment |
CN113741718B (en) * | 2020-05-29 | 2024-06-04 | 杭州海康威视数字技术股份有限公司 | Control data conversion method and device and main control equipment |
CN112040317A (en) * | 2020-08-21 | 2020-12-04 | 海信视像科技股份有限公司 | Event response method and display device |
CN112328394B (en) * | 2020-11-03 | 2024-03-01 | 北京信而泰科技股份有限公司 | Message sequence processing method, device and readable medium in protocol simulation |
CN112328394A (en) * | 2020-11-03 | 2021-02-05 | 北京信而泰科技股份有限公司 | Method, device and readable medium for processing message sequence in protocol simulation |
CN112685148A (en) * | 2020-12-07 | 2021-04-20 | 南方电网数字电网研究院有限公司 | Asynchronous communication method and device of mass terminals, computer equipment and storage medium |
CN112416632A (en) * | 2020-12-14 | 2021-02-26 | 五八有限公司 | Event communication method and device, electronic equipment and computer readable medium |
CN112995198A (en) * | 2021-03-29 | 2021-06-18 | 中信银行股份有限公司 | Short-connection communication method and device based on socket |
CN116132175A (en) * | 2023-02-16 | 2023-05-16 | 中国人民解放军61660部队 | Event-driven network engine-based remote back door detection method |
CN116132175B (en) * | 2023-02-16 | 2023-09-22 | 中国人民解放军61660部队 | Event-driven network engine-based remote back door detection method |
CN116302850A (en) * | 2023-05-20 | 2023-06-23 | 北京长亭科技有限公司 | Linux socket connection event monitoring method and device |
CN116302850B (en) * | 2023-05-20 | 2023-09-12 | 北京长亭科技有限公司 | Linux socket connection event monitoring method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108563493A (en) | A kind of event-driven method, device, equipment and readable storage medium storing program for executing | |
EP2701074B1 (en) | Method, device, and system for performing scheduling in multi-processor core system | |
CN102158535A (en) | Cloud computing operating system | |
CN103593234A (en) | Adaptive process importance | |
CN109840142A (en) | Thread control method, device, electronic equipment and storage medium based on cloud monitoring | |
CN106557369A (en) | A kind of management method and system of multithreading | |
CN107491346A (en) | A kind of task processing method of application, apparatus and system | |
WO2021159831A1 (en) | Programming platform user code running method, platform, node, device and medium | |
CN106385377B (en) | Information processing method and system | |
WO2023174037A1 (en) | Resource scheduling method, apparatus and system, device, medium, and program product | |
EP3358795B1 (en) | Method and apparatus for allocating a virtual resource in network functions virtualization (nfv) network | |
CN109840141A (en) | Thread control method, device, electronic equipment and storage medium based on cloud monitoring | |
CN109800261A (en) | Dynamic control method, device and the relevant device of double data library connection pool | |
CN111338769A (en) | Data processing method and device and computer readable storage medium | |
CN111339194A (en) | Automatic scheduling method and device for middleware of database access layer | |
Akkermans et al. | CerberOS: A Resource-Secure OS for Sharing IoT Devices. | |
Behnke et al. | Towards a real-time IoT: Approaches for incoming packet processing in cyber–physical systems | |
CN109144676A (en) | A kind of self-starting detection method, device and the server of application program | |
CN103927191B (en) | Resource allocation method and resource allocation device for invoking function | |
JP2016071841A (en) | Job management device, job management system, job management method, and program | |
CN108347341A (en) | A kind of acceleration capacity method of adjustment and device for adjusting virtual machine acceleration capacity | |
Kellner | Flexible online energy accounting in TinyOS | |
CN107329819A (en) | A kind of job management method and device | |
CN110362448A (en) | A kind of GPU management-control method and relevant apparatus | |
CN112448833A (en) | Multi-management-domain communication method and device |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20180921 |
|
WW01 | Invention patent application withdrawn after publication |