由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - [合集] Java interview question, Thanks.
相关主题
Apply lock on a class.同一个Lock锁两次,性能比较差
jvm是怎么implement monitor的?List, LinkedList and Vector
Talk a little more about How to lock a file几个问题
请教一个多线程lock机制的问题一个基本问题。
Java concurrency的疑惑,难道我理解错了? (转载)请问这个面试题,关于synchronize hashmap
Re: How to use abstract class?看了zhaoce073大水忍不住说2句
问题征解interview question:
泛型问题synchronized method does lock the object that passed into the method as a parameter?
相关话题的讨论汇总
话题: lock话题: java话题: question话题: interview话题: class
进入Java版参与讨论
1 (共1页)
I*******e
发帖数: 1879
1
☆─────────────────────────────────────☆
chgdragon (cplusmad) 于 (Thu Apr 5 20:57:16 2007) 提到:
Implement a lock object in Java that takes thread priority into
consideration.
Assume that all threads in the system are subclasses
of MyThread. We want to define a Lock class so that
other parts of the program can use this class to
protect critical sections:
Lock lock;
....
lock.lock();
.... // synchronized code
lock.unlock();
The special requirement for Lock is that, regardles
1 (共1页)
进入Java版参与讨论
相关主题
synchronized method does lock the object that passed into the method as a parameter?Java concurrency的疑惑,难道我理解错了? (转载)
昨天面试的一道题Re: How to use abstract class?
请问hibernate这个功能如何实现?问题征解
java ,wait ,notify notifyall泛型问题
Apply lock on a class.同一个Lock锁两次,性能比较差
jvm是怎么implement monitor的?List, LinkedList and Vector
Talk a little more about How to lock a file几个问题
请教一个多线程lock机制的问题一个基本问题。
相关话题的讨论汇总
话题: lock话题: java话题: question话题: interview话题: class