Im kinda new to the whole multithreading thing, Ive heard that tutorials just cant describe how powerful it is or something, so Is it possible if u could show me just an extremely basic layout to what you just said?
Some like:
Code:
HANDLE hThread1, hThread2;
int Winmain(...)
{
int ThreadId;
hThread1 = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)Acceptthread, NULL, 0, (LPDWORD)&ThreadId);
int ThreadId2;
hThread2 = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)IOthread, NULL, 0, (LPDWORD)&ThreadId2);
}
void Acceptthread()
{
}
void IOthread()
{
}
Im not really sure if the code above is right, but I was also wondering, do you need to declare a MUTEX in order to use a thread?