Posts Tagged ‘myPS2’

Valueable myPS2 sources! – Part 2

September 19, 2010

The thread scheduler seems to work nicely. I’ve done a simple test project using it and uploaded here:

http://svn2.assembla.com/svn/pedroduarteps2dev_public/wip/testTaskSchedMyPS2

It uses the scheduler.c and scheduler.h files taken from the myPS2 sources and starts two threads. Some delay loops are done inside each thread to slow down processing for us to see what’s going on. The call to ‘Scheduler_YieldThread()’ is important so the thread can cooperate with the other threads.

Could be an alternative to the thread switching method I’m using at cosMix (actually, it’s quite similar).