Skip to content
Discussion options

You must be logged in to vote

Parallel.For(..) is going to have to call Wait(..)/Join(..) or similar in order to be able to complete the call, which will use barriers.

This is one of the "traditional" (As in, across multiple languages) ways that multi-threaded work has been done safely - have multiple threads work on separate array elements, then do something with the combined results afterwards.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@EgorBo
Comment options

EgorBo Aug 21, 2025
Collaborator

@MartyIX
Comment options

@MartyIX
Comment options

@huoyaoyuan
Comment options

@MartyIX
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Clockwork-Muse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants