I hate using C, but there is no alternative for Windows at the moment. I also hate the WinAPI. So far, it looks like process.h requires both. Is this true concurrency? Looking at some examples (takes me a while to completely understand what's going on since I'm not familiar with C), I'm trying to follow how it works.
So far I'm understanding that beginthread returns a handle to said thread, and endthread needs to be written into the function that is going to be a thread. This is a little different than what I was thinking. I'm reading the information from here http://www.digitalmars.com/rtl/process.html
but I'm kind of confused. What's the difference between _beginthread and _spawn? spawn looks like it might be the better choice, but maybe I missed something when reviewing it. I also didn't see _beginthreadex() anywhere on that page. Maybe it's too old?
I'm also assuming that I'll have to wrap any variables into their own thread safe class to prevent them from being accessed while being used. I'm just trying to get a grasp of this before I jump head first into coding since C isn't a strong point for me at all.
Edit: Did some digging on SO, and found more information between _beginthread() and _beginthreadex(). I am most definitely using the later, however, I need to research the "security" parameter. Ugh.