由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Java练习题 10
相关主题
java ,wait ,notify notifyall一个基本问题。
请教:performance issueJava concurrency的疑惑,难道我理解错了? (转载)
昨天面试的一道题●●●●紧急求助JAVA初级问题,今天project due●●●●
how to get thread ID from inside a Callable or Runnable ?java的接口runnable
NoThread concurrencycore java多线程一般面试什么
condional variable thread sync 问题Java练习题 4
大家熟读了Java source code几遍?Java练习题 6
几个问题Java练习题 7
相关话题的讨论汇总
话题: what话题: difference话题: between话题: callable话题: process
进入Java版参与讨论
1 (共1页)
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
3
求标准答案
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?

1 (共1页)
进入Java版参与讨论
相关主题
Java练习题 7NoThread concurrency
Java练习题 9condional variable thread sync 问题
Java 入门求教大家熟读了Java source code几遍?
java 如何入门几个问题
java ,wait ,notify notifyall一个基本问题。
请教:performance issueJava concurrency的疑惑,难道我理解错了? (转载)
昨天面试的一道题●●●●紧急求助JAVA初级问题,今天project due●●●●
how to get thread ID from inside a Callable or Runnable ?java的接口runnable
相关话题的讨论汇总
话题: what话题: difference话题: between话题: callable话题: process