u****s 发帖数: 2186 | 1 Q1. What's the difference between process and thread?
Q2. What's the difference between Runnable and Callable?
Q3. What's the difference between when use synchronized method/block and
when use ReentrantLock
Q4. How to achieve wait/notify/notifyAll using java.util.concurrent package?
Q5. What is serialVersionUID? what is it for? |
g**e 发帖数: 6127 | 2 请问你这些题目都是在哪找的,谢谢
package?
【在 u****s 的大作中提到】 : Q1. What's the difference between process and thread? : Q2. What's the difference between Runnable and Callable? : Q3. What's the difference between when use synchronized method/block and : when use ReentrantLock : Q4. How to achieve wait/notify/notifyAll using java.util.concurrent package? : Q5. What is serialVersionUID? what is it for?
|
s***8 发帖数: 1136 | |
g**e 发帖数: 6127 | 4 这几个问题面试很常见吧,google一下到处都是
【在 s***8 的大作中提到】 : 求标准答案
|
q*********u 发帖数: 280 | 5 好题, 我没有google, 自己裸答了,请包含指正一下
Q1. What's the difference between process and thread?
process is expensive, traditionally, doesn't share memory;
thread can be understood as a light weight process, can share memory
with
each other;
Q2. What's the difference between Runnable and Callable?
Callable can return value?
Callable can throw an exception?
Q3. What's the difference between when use synchronized method/block and
ReentrantLock can have multiple locks, more flexible than synchronized
【在 u****s 的大作中提到】 : Q1. What's the difference between process and thread? : Q2. What's the difference between Runnable and Callable? : Q3. What's the difference between when use synchronized method/block and : when use ReentrantLock : Q4. How to achieve wait/notify/notifyAll using java.util.concurrent package? : Q5. What is serialVersionUID? what is it for?
|
q*********u 发帖数: 280 | 6 感觉很害怕因为面java的时候突然冒出process来,这个好像很难从java这里来讲吧?
package?
【在 u****s 的大作中提到】 : Q1. What's the difference between process and thread? : Q2. What's the difference between Runnable and Callable? : Q3. What's the difference between when use synchronized method/block and : when use ReentrantLock : Q4. How to achieve wait/notify/notifyAll using java.util.concurrent package? : Q5. What is serialVersionUID? what is it for?
|
u****s 发帖数: 2186 | 7 有些是面试/考试的时候遇到的,有些是自己想的
【在 g**e 的大作中提到】 : 请问你这些题目都是在哪找的,谢谢 : : package?
|