Yes,I mean that,as in my service there's an array to be accessed also by a
thread exists in this service ,so how do I protect the array from being a
race condition between the service and the thread?



On Thu, Jun 24, 2010 at 4:48 AM, Streets Of Boston
<[email protected]>wrote:

> Do you mean synchronization? (synchronized blocks; classes from the
> java.util.concurrent package)
>
> On Jun 23, 8:38 pm, tarek attia <[email protected]> wrote:
> > Hi all,
> >
> > I'm doing an application that requires that certain thread access data
> > that's shared among it and another service.How can I protect these shared
> > data form accessing in the same time ,,is there anything in android for
> that
> > or android has nothing to do with this as Java API's will do the job ....
> >
> > Thanks,
> >
> > --
> > tarek
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
tarek

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to