Categories
  Encyclosphere.org ENCYCLOREADER
  supported by EncyclosphereKSF

Engine (computer science)

From HandWiki - Reading time: 1 min

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 ...))))




Licensed under CC BY-SA 3.0 | Source: https://handwiki.org/wiki/Engine_(computer_science)
24 views | Status: cached on April 16 2025 04:11:45
↧ Download this article as ZWI file
Encyclosphere.org EncycloReader is supported by the EncyclosphereKSF