Aaron Ardiri wrote:
my understanding is that the KERNEL implements some form of green-threads
(managed threads); so, if any callback takes too much time - the device
will
tend to lock up. so, if you put your code in an infinite loop -
regardless where
you are - consider your application fried and reset is required.
I guess there are really native threads underneath, not just green ones.
They are probably limited in number to make implementation easier but
there is full preemptive multitasking present. it would be kind of hard
to implement some advanced stuff in OS without proper threads.
Also this http://flippinbits.com/twiki/bin/view/FAQ/HowDoICreateAThread
works and it is infinite loop.
BTW, would be nice to see code snippets using undocumented native
threading and synchronization API (Dmitry?) but I know it was hard to
find out. Would be useful for all kinds of hackish stuff (as OS5
evolution is dead end anyway so not much will change in future).
Frantisek
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/