Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 404
Registered: ‎05-31-2011
My Device: curve
My Carrier: devel

synchronize 2 threads

hii, how to synchronize 2 threads?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: synchronize 2 threads

Look at wait and notify methods available on all Objects.

 

I generally create a synchronization Object and have have one of the Threads wait on that, and the other notify.

 

These are standard Java functions, so look for documentation on this around the web.

 

Good luck.