The easy answer is that it cannot be done - PalmOS is a 
single-thread-single-task OS.

Paralel tasks can be simulated to a certain degree, though.

For instance, you can have a clock seemingly running "in parallel" on a form, 
while the user can do various things with the form, like enter data, click on 
buttons, etc. But the clock isn't really running in parallel. Instead, the form 
listens to the nilEvent event, which is sent when the OS has nothing to do, and 
updates the clock then.

PalmOS 5.x can also play sound in the background in a true parallel fashion 
(i.e., while another application is running), although I've never tried to 
implement this myself.

PalmOS 6.x is multi-threaded-multi-tasking OS, but you'll have a hard time 
finding a device that is actually running it. :-)

Finally, see this example for a dirty trick:

http://flippinbits.com/twiki/bin/view/FAQ/HowDoICreateAThread

But I suspect that you'll have to re-design what you want to do, if you want it 
to be doable. For instance, instead of having one application display a clock 
"in the background" while another is running, can't you simply use one 
application that displays a clock on the current form? Or, if the second 
application's form(s) cover the clock completely on the screen, you could 
update the clock after the second application exits.

Regards,
Vesselin
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to