# US 2015/0149666 A1 · Event System and Methods for Using Same

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2015/0149666 A1
- Document ID: US20150149666A1
- Status: Published application
- Kind: A1
- Application number: 14/609,175
- Filed: 2015-01-29
- Published: 2015-05-28
- Earliest claimed: 2011-07-22
- Assignees: Mcorelab, Inc.
- Applicants: Mcorelab, Inc.
- Inventors: Yilin Wang; Zheng Liu
- Web page: https://patentgrep.com/patent/US20150149666A1

## CPC

- G06F 13/22: using successive scanning, e.g. polling (G06F13/24 takes precedence)
- G06F 9/542: {Event management; Broadcasting; Multicasting; Notifications}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Event systems and methods are provided through which applications can manage input/output operations (“I/O”) and inter-processor communications. An event system in conjunction with fast I/O is operable to discover, handle and distribute events. The system and method disclosed can be applied to combinations that include event-driven models and event-polling models. In some embodiments, I/O sources and application sources direct events and messages to the same destination queue. In some embodiments, the system and methods include configurable event distribution and event filtering mechanisms operable to effect and direct event distribution for multiple event types using multiple methods. In some embodiments, the system disclosed includes enhanced event handler API's. Some embodiments include a multicast API operable to allow applications to perform multicasting in a single API call. In addition, various mechanisms of the disclosed event system can be combined with traditional operating systems.

## Claims

### Claim 1

A computer event handling process comprising:
a) a computer operating system running one or more active input/output polling threads;
b) the one or more active input/output polling threads continuously actively polling for input/output events from one or more input/output devices; and
c) upon discovery of a first input/output event from a first input/output device, a first active input/output polling thread among the one or more active input/output polling threads invoking an application event handler for an application.

### Claim 2 (depends on 1)

The computer event handling process of claim 1 wherein the one or more active input/output polling threads run on one more dedicated processors.

### Claim 3 (depends on 2)

The computer event handling process of claim 2 wherein, during the invoking step (c), providing to said application a descriptor of an input/output object associated with the first input/output event.

### Claim 4 (depends on 2)

The computer event handling process of claim 2 wherein, during the invoking step (c), an application-specified object associated with the first input/output event is provided to said application.

### Claim 5 (depends on 1)

The computer event handling process of claim 1 wherein, prior to the invoking step (c), the computer operating system completes immediately preceding TCP and IP protocol processing.

### Claim 6 (depends on 1)

The computer event handling process of claim 1 wherein, prior to the invoking step (c), the computer operating system completes immediately preceding UDP and IP protocol processing.

### Claim 7 (depends on 1)

The computer event handling process of claim 1 wherein the one or more active input/output polling threads continuously actively poll for input/output events through one or more virtual interfaces.

### Claim 8 (depends on 1)

The computer event handling process of claim 1 wherein the one or more active input/output polling threads continuously actively poll for input/output events through one or more one or more device drivers providing access to one or more input/output devices.

### Claim 9

A computer event handling process comprising:
a) a computer operating system executing in parallel a plurality of active input/output polling threads, each of said active input/output polling threads continuously actively polling for input/output events from among a plurality of input/output devices;
b) upon discovery of a first input/output event, a first active input/output polling thread among the plurality of active input/output polling threads invoking a first application event handler for a first application; and
c) upon discovery of a second input/output event, a second active input/output polling thread among the plurality of active input/output polling threads invoking a second application event handler.

### Claim 10 (depends on 9)

The computer event handling process of claim 9 wherein each among the plurality of active input/output polling threads executes on a polling-thread-dedicated processor.

### Claim 11 (depends on 9)

The computer event handling process of claim 9 wherein, during the invoking step (c), providing to said first application a descriptor of an input/output object associated with the first input/output event.

### Claim 12 (depends on 9)

The computer event handling process of claim 9 wherein, during the invoking step (c), providing to said first application an application-specified object associated with the first input/output event.

### Claim 13 (depends on 1)

The computer event handling process of claim 1 wherein, prior to the invoking step (c), the computer operating system completes immediately preceding (i) IP and (ii) TCP or UDP protocol processing.

### Claim 14

A computer event handling process comprising:
a) executing, with a computer operating system, one or more active input/output polling threads, each among the one or more active input/output polling threads polling for input/output events from among one or more input/output devices and, upon discovery of an input/output event, enqueing the input/output event onto one or more input/output event queues; and
b) while executing, with the computer operating system, one or more input/output event queue polling threads on the one or more input/output event queues, dequeuing of a first input/output event from the one or more input/output event queues and invoking one or more application event handlers with the one or more input/output event queue polling threads.

### Claim 15 (depends on 14)

The computer event handling process of claim 14 wherein each among the one or more input/output polling threads executes on a thread-dedicated-processor.

### Claim 16 (depends on 14)

The computer event handling process of claim 14 wherein each among the one or more input/output polling threads is distinct from the one or more input/output event queue polling threads.

### Claim 17 (depends on 16)

The computer event handling process of claim 16 wherein each of the one or more input/output polling threads execute on one or more dedicated input/output polling thread processors and each of the one or more input/output event queue polling threads execute on one or more dedicated input/output event queue polling processors.

### Claim 18 (depends on 14)

The computer event handling process of claim 14 wherein a first plurality of input/output events associated with a first plurality of multiple file descriptors are enqueued to the first or another event queue, and a second plurality of input/output events associated with multiple file descriptors are enqueued to the second or a third event queue.

### Claim 19 (depends on 18)

The computer event handling process of claim 18 wherein a first plurality of input/output events associated with a first plurality of multiple sockets are enqueued to the first or another event queue, and a second plurality of input/output events associated with a second plurality of multiple sockets are enqueued to the second or a third event queue.

### Claim 20 (depends on 14)

The computer event handling process of claim 14 wherein each among the one or more active input/output polling threads actively poll continuously during operation of the operating system for input/output events through one or more virtual interfaces.

### Claim 21 (depends on 14)

The computer event handling process of claim 14 wherein each among the one or more input/output polling threads actively poll continuously during operation of the operation of the operating system for input/output events through one or more device drivers providing access to one or more input/output devices.

### Claim 22

A computer event handling process comprising:
a) executing in parallel, with a computer operating system, a plurality of active input/output polling threads, each among the plurality of active input/output polling threads polling for input/output events from among a plurality of input/output devices and, upon discovery of each input/output event among a plurality of input/output events, enqueing each input/output event onto one or more input/output event queues among a plurality of input/output event queues; and
b) while executing in parallel, with the computer operating system, a plurality of input/output event queue polling threads with a first input/output event queue polling thread polling on a first input/output event queue among the plurality of input/output event queues and a second input/output event queue polling thread polling on a second input/output event queue among the plurality of input/output event queues:
i) dequeuing of a first input/output event from the first input/output event queue and invoking a first application event handler with a first input/output event queue polling thread among the plurality of input/output event queue polling threads; and
ii) dequeuing of a second input/output event from the second input/output event queue and invoking a second application event handler with a second input/ouput event queue polling thread among the plurality of input/output event queue polling threads.

### Claim 23 (depends on 22)

The computer event handling system of claim 22 wherein each among the plurality of active input/output polling threads executes on a dedicated processor and multiple active input/output polling threads execute concurrently in parallel on multiple dedicated processors.

### Claim 23 (depends on 21)

The computer event handling system of claim 21 wherein the plurality of active input/output polling threads are distinct from the input/output event queue polling threads.

### Claim 24 (depends on 22)

The computer event handling system of claim 22 wherein the plurality of active input/output polling threads execute on a first set of processors and the plurality of input/output event queue polling threads execute on a second set of processors not including any processors among the first set of processors.

### Claim 25

A computer event handling system comprising:
a) event polling, with a computer operating system, for input/output events from among one or more input/output devices;
b) upon discovery of one or more input/output events through said event polling, enqueing the one or more input/output events to one or more input/output event queues and enqueuing a plurality of input/output events with multiple descriptors to the one or more input/output event queue; and
c) application polling for a plurality of input/output events through an event polling application programming interface.

### Claim 26 (depends on 25)

The computer event handling system of claim 25 wherein the event polling application programming interface causes event queue polling the said one or more input/output event queues and dequeuing from one input/output event queue the or another plurality of input/output events associated with the or differing multiple descriptors.

### Claim 27 (depends on 26)

The computer event handling system of claim 26 wherein the number of file descriptors is a greater than a multiple of the number the one or more input/output event queues.

### Claim 28 (depends on 26)

The computer event handling system of claim 26 wherein all the input/output events associated with the or differing multiple descriptors are enqueued to the one input/output event queue or destinations associated with the one input/output event queue.

### Claim 29 (depends on 26)

The computer event handling system of claim 26 wherein the event polling is continuously active polling by one or more active input/output polling threads supplied by the computer operating system.

### Claim 30 (depends on 26)

The computer event handling system of claim 26 wherein the event polling includes passive polling by the computer operating system in response to an application calling an application programming interface supplied by the computer operating system.

### Claim 31 (depends on 26)

The computer event handling system of claim 26 wherein the event polling includes polling through one or more virtual interfaces.

### Claim 32 (depends on 26)

The computer event handling system of claim 26 wherein the event polling includes polling through one or more device drivers for the or another one or more input/output devices.

### Claim 33 (depends on 29)

The computer event handling system of claim 29 wherein the one or more active input/output polling threads execute on one or more dedicated processors.

### Claim 34

A computer event handling process comprising:
a) executing in parallel, with a computer operating system, a plurality of active input/output polling threads, with each among the plurality of active input/output polling threads continuously event polling for input/output events from one or more input/output devices and, upon discovery of each input/output event among a plurality of input/output events, enqueing each input/output event onto one or more input/output event queues among a plurality of input/output event queues, including enqueuing a set of input/output events associated with multiple descriptors to one input/output event queue; and
b) application polling for a plurality of input/output events through an event polling application programming interface supplied by the computer operating system.

### Claim 35 (depends on 34)

The computer event handling system of claim 34 wherein the event polling application programming interface causes event queue polling the said one or more input/output event queues and dequeuing from the one input/output event queue the set of input/output events associated with multiple descriptors.

### Claim 36 (depends on 35)

The computer event handling system of claim 35 wherein the number of file descriptors is greater than a multiple of the number the one or more input/output event queues.

### Claim 37 (depends on 35)

The computer event handling system of claim 35 wherein the event polling includes polling through one or more virtual interfaces.

### Claim 38 (depends on 35)

The computer event handling system of claim 35 wherein the event polling includes polling through device drivers communicable with input/output devices.

### Claim 39 (depends on 35)

The computer event handling system of claim 35 wherein the plurality of active input/output polling threads execute on dedicated processors.
