Parallel calculations: Difference between revisions
m
→{{header|Wren}}: Minor tidy
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 2,698:
However, it's possible for a suitable host on a suitable machine to run multiple VMs in parallel as the following example, with a C host, shows when run on a machine with four cores. Four VMs are used each of which runs on its own thread.
<syntaxhighlight lang="
import "./math" for Int
Line 2,818:
config.loadModuleFn = &loadModule;
const char* module = "main";
const char* fileName = "
char *script = readFile(fileName);
|