Chris,
I have to clarify the issue. I do NOT want concurrency. Instead single
tasking during data acquisition is a must because the Palm computer hardly
sustain that acquisition rate. The acquired data is to be transferred across
network when the acquisition stops. Then sometimes after the data transfer
completed, a new data acquisition starts again. The question is if there is
an active background network task, may be in idle state or whatever,
interrupting the data acquisition.


----- Original Message -----
From: "Chris DiPierro" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, May 23, 2002 6:21 PM
Subject: Re: Multitasking issue


> I'm not sure I understand your question 100%, but I'll take a stab at it.
>
> Yes, the kernel underlying PalmOS is multitasking, but you don't have
access
> to threads or other processes, so you can't go that route.
>
> However, using the new serial manager, you can specify a callback function
> that will be called everytime the serial port has data available. This
means
> that even if you're in your networking code, you can grab the incoming
data
> in close to realtime. Your networking code would of course have to be
smart
> enough to realize that more data is available (I can't really understand
> what you're doing with the networking code, but it sounded to me like
you're
> trying to send the realtime data stream over the network simultaneously).
> This should give you what you need I think.
>
>
> > My application does real time data acquisition via serial port at 8
> > Kbytes/sec. Everything is OK so far in spite of the peripheral device
has
> no
> > FIFO. I know that Palm OS is multitasking capable, but usually an
> > application task is running alone. Now I'm going to introduce FTP
> networking
> > functionality in my application. The network stack must be the second
task
> > running concurrently with the application task. There should not be a
> > problem at all if the network activity starts past data acquisition - no
> > interruption of data acquisition occurs. If it stops before the new data
> > acquisition loop starts then OK. However my concern is that as soon as
the
> > network stack has been activated from my application then the network
task
> > would run concurrently forever with the active application even all data
> > transfer completed. In that case the following data acquisition would be
> > interrupted by the concurrent task, which I don't want.
> >
> > Any ideas?
> >
> >
> >
> >
> >
> >
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>



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

Reply via email to