Threads with j2me
HI ,
I have been struck with the implemenation of multithreading in j2me.
Flow is like this.
1)Thread A (main thread) spawns a new thread B.
2)Thread B reads from the contact list (using PIM API) and populates the hash map object, a global variable.
3)Thread A reads this global Hash map and then disply.
But threads are not getting synchronised in the above way.Thread A starts reading hashmap before the thread B could populate the same....
Please help me out to solve this issue.

