16. A method for processing a data stream of events, the method comprising: determining that multiple portions of a continuous event processing (CEP) query can be executed concurrently relative to an event in an event stream, the determining comprising: splitting the CEP query into a plurality of separate operators; determining a separate constraint for each operator within the plurality of separate operators; and determining, based on the separate constraint for each operator within the plurality of separate operators, whether at least a part of the CEP query can be executed in a concurrent manner; executing the multiple portions of the CEP query concurrently against a first event received via the event stream in response to determining that at least part of the CEP query can be executed in a concurrent manner; and merging, into a single shared operator, (a) a first operator that is used by a first CEP query that processes at least the first event in the event stream, and (b) a second operator that is used by a second CEP query that also processes at least the first event in the event stream, in response to determining that the first operator and the second operator both perform a particular type of operation.
16. A method for processing a data stream of events, the method comprising: determining that multiple portions of a continuous event processing (CEP) query can be executed concurrently relative to an event in an event stream, the determining comprising: splitting the CEP query into a plurality of separate operators; determining a separate constraint for each operator within the plurality of separate operators; and determining, based on the separate constraint for each operator within the plurality of separate operators, whether at least a part of the CEP query can be executed in a concurrent manner; executing the multiple portions of the CEP query concurrently against a first event received via the event stream in response to determining that at least part of the CEP query can be executed in a concurrent manner; and merging, into a single shared operator, (a) a first operator that is used by a first CEP query that processes at least the first event in the event stream, and (b) a second operator that is used by a second CEP query that also processes at least the first event in the event stream, in response to determining that the first operator and the second operator both perform a particular type of operation. 17. The method of claim 16 , further comprising executing the multiple portions of the CEP query concurrently against the first event received via the event stream by spawning multiple threads of execution that concurrently process the multiple portions of the CEP query against the first event received via the event stream.