Concurrent computing: Difference between revisions
Content added Content deleted
(Adds slope example) |
No edit summary |
||
Line 849: | Line 849: | ||
Code |
Code |
||
</pre> |
</pre> |
||
=={{header|FutureBasic}}== |
|||
<syntaxhighlight lang="futurebasic"> |
|||
include "NSLog.incl" |
|||
long priority(2) |
|||
priority(0) = _dispatchPriorityDefault |
|||
priority(1) = _dispatchPriorityHigh |
|||
priority(2) = _dispatchPriorityLow |
|||
dispatchglobal , priority(rnd(3)-1) |
|||
NSLog(@"Enjoy") |
|||
dispatchend |
|||
dispatchglobal , priority(rnd(3)-1) |
|||
NSLog(@"Rosetta") |
|||
dispatchend |
|||
dispatchglobal , priority(rnd(3)-1) |
|||
NSLog(@"Code") |
|||
dispatchend |
|||
HandleEvents |
|||
</syntaxhighlight> |
|||
=={{header|Go}}== |
=={{header|Go}}== |