CONCURRENT EXCEPTION HANDLING
First Claim
1. A computer-readable medium having computer-executable instructions for causing a computer to perform steps comprising:
- receive exception results;
supply one or more exception handler functions;
for each respective exception in the exception results, determine if the respective exception is one of a kind of exceptions handled by the one or more exception handler functions; and
if the respective exception is one of the kind handled by the exception handler functions, then run a particular handler of the exception handler functions and mark the respective exception as handled.
1 Assignment
0 Petitions
Accused Products
Abstract
Various technologies and techniques are disclosed for providing concurrent exception handling. When one or more exceptions are received from concurrent workers, one or more exception handler functions are supplied. For each respective exception in the exception results, determine if the respective exception is one of a kind of exceptions handled by the one or more exception handler functions. If the respective exception is one of a kind handled by the exception handler functions, then run a particular handler of the exception handler functions and mark the respective exception as handled. Any unhandled exceptions are then processed appropriately. In one implementation, a collection of input data is processed to produce a collection of output results, with the exceptions being interleaved with other output results. In another implementation, a particular exception is selected that represents the multiple exceptions. The selected one particular exception is then thrown.
37 Citations
13 Claims
-
1. A computer-readable medium having computer-executable instructions for causing a computer to perform steps comprising:
-
receive exception results; supply one or more exception handler functions; for each respective exception in the exception results, determine if the respective exception is one of a kind of exceptions handled by the one or more exception handler functions; and if the respective exception is one of the kind handled by the exception handler functions, then run a particular handler of the exception handler functions and mark the respective exception as handled. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method for providing a deferred concurrent exception process comprising the steps of:
-
in a sequential process that uses concurrent worker tasks, processing a collection of input data to produce a corresponding collection of output results, the collection containing either an actual output value or an exception value for each result, the actual output values being interleaved with the exception values; making the collection of output results available to the sequential process; and having the worker tasks continue to produce the output results completely, as exceptions are encountered. - View Dependent Claims (8, 9, 10, 11, 12, 13)
-
Specification