PalmOS doesn't expose any threading APIs for multithreaded apps. I've got a gut feeling that PalmOS 5.0 won't include any new APIs for thread creation/synchronization, even though the OMAP architecture exposes APIs which allow for real-time concurrent DSP processing that does not detract from the RISC's performance (Palm gets a DMA sound card!).
The only solution for folks who need to multithread on the Palm platform is to use a user-level threading library such as Green threads, which maps multiple user-level threads on top of the one-and-only exposed kernel thread. User-level threading libraries work fine, and anyone who has written Palm apps with J2ME knows that the java.lang.Thread class boasts built-in multithreading support via a quasi-Green thread user-level thread scheduler -- a BIG time saver if your app must be multithreaded above and beyond what the Progress Manager can get you. :) But user-level threading is kind of klunky, it becomes difficult to deal with blocking system calls, and it is not efficiently scalable beyond one CPU, since one can't map a user-level thread to an idle CPU (only kernel-level threads can be mapped in this fashion, AFAIK). What do you think? It is arguable that the Zen of Palm is undermined by multithreading. Though a multithreaded Palm app has the potential to be overkill for the simplicity of a Palm device, it puts a huge strain on developers who are trying to integrate inherently threaded technologies into their apps -- such as off-loading MP3/MPEG4 decoding to the DSP in a separate thread (OMAP is supposed to automatically delegate DSP-specific tasks to its DSP), or listening to client requests and servicing them with new threads when useful server apps built for bluetooth-enabled Palm devices become a reality. Thanks for your time! -Jeff Ishaq ishaqjunk AT hotmail DOT com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
