You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-user@ws.apache.org by "Jeffrey (Jun Li)" <ju...@yahoo.com> on 2007/10/31 19:42:50 UTC

Do threads in Muse share resources with the threads outside?

There are two threads: 
One, namely A, is started in method of initializeCompleted() in a capability class. I assume it's started by Muse, right?
The other one, namely B, is started by another class having nothing to do with Muse.

B has a public static member, a Map. This Map is synchronized. 
At runtime, B writes some data in the Map. However, A can't read the data from the Map. 

If A is started by another class without Muse, it works.

Why?

Thanks in advance.

Jeff.