Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Description comment in pt_join.c #17

Open
lmartak opened this issue Oct 4, 2017 · 0 comments
Open

Description comment in pt_join.c #17

lmartak opened this issue Oct 4, 2017 · 0 comments

Comments

@lmartak
Copy link

lmartak commented Oct 4, 2017

I'd like to point out that commentary description of this file is probably outdated/incorrect/misleading. https://github.com/drahosp/PaPP/blob/master/examples/pthreads/pt_join1.c

Specifically following part seems to be different:

Each thread draws one million random numbers between 0 and 1 and adds these together in a variable sum.

since threads only do increment of shared variable count.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant