|
My main concern is if there are certain CPU instructions necessary to implement thread support (and if so, does the SH2 have those instructions?).
I've read a little bit on the topic and it seems that User Level Threads should be possible using a threading library (libpthread, ...). Unfortunately ULT don't seem to support multiple processors, in opposite to Kernel Level Threads (done by OS).
As we have full controll, I guess dual CPU support could be hacked in.
Without having any potential CPU overhead in mind, threads could be our solution to use both CPUs efficiently. It would just be what I thought about earlier....
However, as for SDL there is no need for thread support, because the Dreamcast port does not use threading, for example. |