A Case of Continuation
by Alec Rogers
20 Feb 2009
An example of continuations, which are used to interlock the states of a consumer-producer pair
|
Watch this File
|
| File Information |
| Description |
Continuations are similar to user-level (i.e. non-preemptive) threads in that they allow functions to return at certain points, and be started back up again at that point in their execution. The continuations in this file are emulated though the use of a switch statement and nested functions.
This example may be of interest to computer science students.
|
| MATLAB release |
MATLAB 7.7 (R2008b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us at files@mathworks.com