13. FutureTask
? 用于要异步获取结果或取消执行任务的场景。
? public FutureTask(Callable<V> callable)
? public boolean cancel(boolean mayInterruptIfRunning)
? public V get() throws InterruptedException,
ExecutionException
40. 指令重排序
Program Order: Execution Order:(maybe)
int w = 10;
int x = 20;
int y = 30;
int z = 40;
int a = w + z;
int b = x + y;
int x = 20;
int y = 30;
int b = x * y;
int w = 10;
int z = 40;
int a = w + z;