Amazon一道synchronization的面试题# JobHunting - 待字闺中
f*t
1 楼
对synchronization没啥基础。看了看career cup。
. Give a class foo, inside, it has a synchronized method. We have two
objects of foo, called, f1 and f2, if f1 and f2 are concurrently running,
can we guarantee the synchronized method being accessed by only one thread?
答案是不是yes?因为method已经是synchronized了,只能被一个thread所执行?
. Give a class foo, inside, it has a synchronized method. We have two
objects of foo, called, f1 and f2, if f1 and f2 are concurrently running,
can we guarantee the synchronized method being accessed by only one thread?
答案是不是yes?因为method已经是synchronized了,只能被一个thread所执行?