I am making an application in C that depends on asynchronous method calls. In my best efforts thus far to make it cross platform I am currently implementing code that looks like this:
#ifdef TARGET_WINDOWS
//Windows threading API
#else
//pthreads API
#endif
I appreciate there is probably a better way to do that but that is not the point of my question. My question is, what will happen to the program on a single-core processor? Will the threads still execute asynchronously (interleaved instructions perhaps), or am I stuck with single-thread execution only on single-core CPUs?