Given that neither C nor C ++ (before C ++ 98) has βthreadsβ, there is no complete cross-platform way for a thread to be available.
In C ++ 0x, there is a function std::this_thread::yield() that can be called for output. This will be a portable way to get a thread as soon as people start using the C ++ 0x thread library.
James McNellis
source share