6 Loops, Exception Handling, and Threads

We now discuss loops in some more detail. We then introduce two new control concepts: exception handling and threads. Exception handling can be used to quit loops or recursive procedures. It is also important for error handling. Threads are the most important ingrediant for concurrent processes. Concurrency is ubiquitiously useful: for functional, internet, and constraint programming. Concurrent threads are fully supported by Oz in contrast to many other programming languages, including high-level languages such as SML and Lisp.



Denys Duchier, Claire Gardent and Joachim Niehren
Version 1.3.99 (20050412)