Producer-Consumer System/Input

From PKC
Revision as of 07:51, 25 August 2021 by KevinTung (talk | contribs) (Created page with "<noinclude> The definition of the logic model is an input of the model. [to discuss] Below is the original code with definition <syntaxhighlight> EXTENDS Naturals, Sequence...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The definition of the logic model is an input of the model. [to discuss] Below is the original code with definition

 
EXTENDS Naturals, Sequences
CONSTANTS Producers,   (* the (nonempty) set of producers                           *)
          Consumers,   (* the (nonempty) set of consumers                           *)
          BufCapacity, (* the maximum number of messages in the bounded buffer      *)
          Data         (* the set of values that can be produced and/or consumed    *)