SOCKET servsock; struct sockaddr_in servaddr; int servlength = sizeof(servaddr); for(;;) { int prxy = accept(servsock, (SOCKADDR*)&servaddr, servlength) return 0; } int newthread = beginthread_(startadress?, 0, NULL); //new thread begins// // { how do I input parameters to run a process as this new thread?? //
//I have tried loop, code brackets, passed arg to run a process// //within that thread// //what options do I have to run a process for newly created thread if any?// beginthread_(threadsrt, 0, thrdprcss) while(thrdprcss,<=100) { int thredprcssfd = someCfunctionapi(int value) }
beginthread
beginthreadex
for
accept
servsock
_beginthread
_beginthreadex
Thread
malloc
new
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)