Program to test the cross compiling of multi-threaded programs
After Installing the complier use this command:
/usr/local/oecore-x86_64/sysroots/x86_64-nilrtsdk-linux/usr/bin/arm-nilrt-linux-gnueabi/arm-nilrt-linux-gnueabi-g++ --sysroot=/usr/local/oecore-x86_64/sysroots/cortexa9-vfpv3-nilrt-linux-gnueabi cpp_thread.cpp -o cpp_thread -std=c++11 -pthread