pthread_create
1.
char *message = new char[macstr.size() + 1];
strcpy(message,macstr.c_str());
std::cout<<macstr<<std::endl;
pthread_create(&tid1,NULL,runner,message);
2. char* pmac = (char*)param;
std::cout<<"pm"<<pmac<<std::endl;