yes i am asking how to write a multithreaded code?
Please take a look at:
One of the best Intel articles on this is "Intel Guide for Developing Multithreaded Applications" found at:http://software.intel.com/en-us/articles/intel-guide-for-developing-mult...
The threading abstracts we most commonly recommend areIntel Threading Building Blocks and Intel Cilk Plus. There is a tutorial on Intel Threading Buiding Blocks at threadingbuildingblocks.org. Examples on using Intel Cilk Plus can be found in the Intel compiler documentation or at www.cilkplus.org.