Metered concurrency: Difference between revisions

Content added Content deleted
m (→‎{{header|Logtalk}}: Add note on dependency)
Line 877: Line 877:


=={{header|Logtalk}}==
=={{header|Logtalk}}==
Using Logtalk's multi-threading notifications, which use a per-object FIFO message queue, thus avoiding the need of idle-loops:
Using Logtalk's multi-threading notifications, which use a per-object FIFO message queue, thus avoiding the need of idle-loops. Works when using SWI-Prolog, XSB, or YAP as the backend compiler.
<lang logtalk>
<lang logtalk>
:- object(metered_concurrency).
:- object(metered_concurrency).