但是如果您不想等待——也就是说,如果您不想同步执行工作,该怎么办呢?
But what if you don't want to wait — that is, what if you don't want to perform the work synchronously?
launchProcess 操作可以同步执行,也可以异步执行,但 stop 操作一直是异步的。
The launchProcess operation can be performed synchronously or asynchronously, but the stop operation is always asynchronous.
同步性能会随着JVM、处理器、工作负载、JIT活动、处理器数量以及正同步执行的代码的数量和特征而变化。
Synchronization performance varies with the JVM, processor, workload, JIT activity, number of processors, and the amount and character of code being executed using synchronization.
应用推荐