Engine (computer science)

Uses your system voice; voice and rate in settings.

Snapshot

≈ 1 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

An engine is a continuation-based construct that provides timed preemption. Engines which can contain other engines are sometimes called Nesters and engines which do not have this ability are then called flat engines or "solo engines". To implement timed preemption there needs to be a clock. This clock can measure real time or simulated time. Simulated time can be implemented in a language like Scheme, by making each function start with decrementing the clock. (define-syntax timed-lambda ((_ formals exp1 exp2 ...) (lambda formals (decrement-timer) exp1 exp2 ...))))

An engine is a continuation-based construct that provides timed preemption. Engines which can contain other engines are sometimes called Nesters and engines which do not have this ability are then called flat engines or "solo engines". To implement timed preemption there needs to be a clock. This clock can measure real time or simulated time. Simulated time can be implemented in a language like Scheme, by making each function start with decrementing the clock. (define-syntax timed-lambda ((_ formals exp1 exp2 ...) (lambda formals (decrement-timer) exp1 exp2 ...)))) ==References==

Text derived from https://en.wikipedia.org/w/index.php?oldid=1302132767 under CC BY-SA 4.0; modifications have been made.