Concurrent computing: Difference between revisions
Content added Content deleted
No edit summary |
(PARI) |
||
Line 615: | Line 615: | ||
end |
end |
||
end</lang> |
end</lang> |
||
⚫ | |||
{{untested}} |
|||
This is a PARI implementation which uses <code>fork()</code> internally. |
|||
<lang C>void |
|||
foo() |
|||
{ |
|||
if (pari_daemon()) { |
|||
// Original |
|||
if (pari_daemon()) { |
|||
// Original |
|||
pari_printf("Enjoy\n"); |
|||
} else { |
|||
// Fork #2 |
|||
pari_printf("Code\n"); |
|||
} |
|||
} else { |
|||
// Fork #1 |
|||
pari_printf("Rosetta\n"); |
|||
} |
|||
}</lang> |
|||
=={{header|Perl}}== |
=={{header|Perl}}== |
||
Line 832: | Line 854: | ||
{{Omit From|Metafont}} |
{{Omit From|Metafont}} |
||
⚫ | |||
{{omit from|TI-83 BASIC}} {{omit from|TI-89 BASIC}} <!-- Does not have concurrency or background processes. --> |
{{omit from|TI-83 BASIC}} {{omit from|TI-89 BASIC}} <!-- Does not have concurrency or background processes. --> |