Hi, I'm writing a large program but require Multithreading for this software. I've searched the web for just over an hour and now is just after midnight but still can't find anything simple. The only thing I saw that came close to what I need was at http://www.computersciencelab.com/MultithreadingTut1.htm but I can't even get that code to work. Basically I have 4 functions (same function but different parameters) and need each function to go into it's own thread making a total of 5 threads (5th thread being the GUI/main() function. The code I have for these functions are as follows:
myfunction(list,count,0,4); myfunction(list,count,1,4); myfunction(list,count,2,4); myfunction(list,count,3,4);
So can somebody point me in the right direction as to how to get each of those functions to go into their own thread simultaneously and preferably with a lower priority than that of the GUI. Also the GUI is done in Microsoft Visual C++ 2008 with the CLR interface.
Any help is greatly appreciated and I'll check this topic in the morning when I wake up as it is now 12:42 at night. Thanks for any information/code provided. :)