This document discusses using the MXML compiler (mxmlc) to compile Flex projects from the command line rather than within Flex Builder. It provides an example command to compile a FlexMXML file located in the user's Documents folder. Additional command line arguments are also demonstrated, such as specifying the output SWF file location and adding library paths. The document recommends adding the Flex SDK bin directory to the system PATH environment variable so mxmlc can be called directly from the command line without specifying the full SDK path.
15. 同步操作
(近似)
// block until obtain lock
synchronized(anObject) {
// get main memory value of field1 and field2
int x = anObject.field1;
int y = anObject.field2;
anObject.field3 = x+y;
// commit value of field3 to main memory
}
// release lock
moreCode();
15 | 2004 JavaOneSM Conference | Session TS-2331
16. 操作何时对其它线程可见 ?
解除锁定(释放)之前 线程 2
ref1.x = 1 的一切
lock M lock M
glo = ref1 ref2 = glo
unlock M unlock M
j = ref2.x
线程 1 对同一对象的随后锁定
(获取)之后的一切
都可见
16 | 2004 JavaOneSM Conference | Session TS-2331