Metered concurrency: Difference between revisions
Content deleted Content added
+D |
m →{{header|D}}: fixed module name |
||
Line 97:
=={{header|D}}==
<d>module
import std.stdio ;
import std.thread ;
Line 146:
c.wait ;
}</d>
=={{header|E}}==
This semaphore slightly differs from the task description; the release operation is not on the semaphore itself but given out with each acquisition, and cannot be invoked too many times.
|