Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

barrier in os

bheda91
Beginner
1,256 Views
how to implement bariier of threads in language c or c++.
0 Kudos
2 Replies
Tudor
New Contributor I
1,256 Views
Do you mean a memory barrier or a thread synchronization barrier?
0 Kudos
Grant_H_Intel
Employee
1,256 Views
To implement a threading barrier, I recommend using OpenMP (see www.openmp.orgfor a specification). The Intel, Gnu, and Microsoft compilers all have OpenMP support in C/C++. These allow you to create threads with a simple pragma and synchronize them all with another simple pragma. Check your compiler documentation and search for the term "barrier" for details.
0 Kudos
Reply