There is also a POSIX library for POSIX operating systems.
Check for compatability
#include
#include
#include
#include
void *task(void *argument){
char* msg;
msg = (char*)argument;
std::cout<
compile with -lpthread
http://en.wikipedia.org/wiki/POSIX_Threads