Thanks Aaron! As you mentioned, we could use global memory to share information between two processes, are there any approaches to do process synchronization, like lock/mutex on Linux?
regards, George ----- Original Message ---- From: Aaron Ardiri <[EMAIL PROTECTED]> To: Lin George <[EMAIL PROTECTED]> Sent: Tuesday, December 12, 2006 2:38:25 AM Subject: Re: multi-threaded application in Palm OS 5.2 On 12/11/06, Lin George <[EMAIL PROTECTED]> wrote: > Thanks Aaron! I want to confirm with you that, you mean each process > can only have one thread, right? you can technically have more than one thread. the audio streaming API is a seperate thread - in addition to the GUI thread. you can even add more threads if you know the API's > Other issues are, > > 1. are there any ways to do inter-process communication, like what > we did on Linux/UNIX by using pipe/shared memory? no. you cannot have two "processes" running at once; there is only one process (your application). if you want to share information between these threads you can use global memory > 2. If the answer to 1 is yes, are there any inter-process synchronization > control approaches, like what we did on Linux/UNIX by using mutex/lock? answer to 1 is no. you can have multi-threads, not multi-processes -- // Aaron Ardiri ____________________________________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
