Skip to content

Spawned processes running one after another instead of parallel #114

@robcalcroft

Description

@robcalcroft

I've got the syntax working and the parallel working however when I'm console logging, the spawned processes seem to be starting one after another, effectively increasing the runtime by no. of threads times. This shows the line where I log the thread start and I get the following result in the console:

stared thread 1458678473324
stared thread 1458678474777
stared thread 1458678476539
stared thread 1458678478468
664579 primes were found between 0 and 10000000 in 5275 milliseconds

The calculation is correct, just the timing seems out.

Issue continued from: #113

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions