TEASE!! -----Original Message----- From: Jim Schram [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 6:02 PM To: Palm Developer Forum Subject: Re: Socket and CPU intensive application
At 4:19 PM -0800 2002/01/30, Steve Mann wrote: >>I think the PalmOS is not multi-threaded. If I spin the CPU, the OS >>won't have a chance to service incoming TCP/IP packets. Is my >>understanding correct? > >The Palm OS has 4 threads. One is dedicated to the TCP/IP stack, so if you spin the >CPU, the packets should still come in just fine. Four? Mmmm... you may be thinking of the number of concurrent TCP sockets available(?) Palm OS actually has only one thread running under "normal" conditions. An additional thread is started when the IP stack or Hotsync becomes active. And some devices use additional threads for things like telephony, SMS, etc. but in any case the maximum number of threads is hard-coded in the kernel and varies from device to device. Just wanted to be clear on that... I don't want developers thinking they can spawn new threads willy nilly. That absolutely will crash the OS. :oP The good news is we understand just how much of a problem the absence of threads can be for certain types of applications, especially when cross-porting existing source code. A future version of the Palm OS may lighten some of these restrictions, but until then... Regards, Jim Schram Palm Incorporated Partner Engineering -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
