Code covered by the BSD License  

Highlights from
A Case of Continuation

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 2.2 KB File ID: #23050

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.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
continuation Alec Rogers 23 Feb 2009 10:43:08
thread Alec Rogers 23 Feb 2009 10:43:08
example Alec Rogers 23 Feb 2009 10:43:08
continuation sunilkumar agarwal 26 Sep 2011 02:54:59

Contact us at files@mathworks.com