Advanced Topics in Exception Handling Techniques

Volume 4119 of the series Lecture Notes in Computer Science pp 62-80

Handling Multiple Concurrent Exceptions in C++ Using Futures

  • Matti RintalaAffiliated withCarnegie Mellon UniversityTampere University of Technology

* Final gross prices may vary according to local VAT.

Get Access


Exception handling is a well-established mechanism in sequential programming. Concurrency and asynchronous calls introduce a possibility for multiple simultaneous exceptions. This complicates exception handling, especially in languages whose support for exceptions has not originally been designed for concurrency. Futures are a mechanism for handling return values in asynchronous calls. They are affected by concurrent exception handling as well, since exceptions and return values are mutually exclusive in functions. This paper discusses these problems and presents a concurrent exception handling mechanism for future-based asynchronous C++ programs.