Download Dynamic C Applications framework
Transcript
CHAPTER 3: COSTATEMENTS Costatements allow cooperative multitasking within an application. Costatements are blocks of code that can suspend their own execution at various times for various reasons, allowing other costatements or other program code to execute. Costatements operate concurrently. There are several advantages such as the following to using costatements.: Costatements are a feature built into the language. Costatements are cooperative instead of preemptive. Costatements can operate without multiple stacks. Using costatements effectively requires knowledge of their syntax, their supporting data structures, and the mechanisms by which they may be put to use. Chapter 3 discusses the following topics. Solving problems with costatements Costatement functions Costatement topics: timing, dependency, nesting, and errors Application Frameworks Costatements s 21