|
|
|
|
VIP Trader
![]() Join Date: Apr 2009
Location: Cleveland, OH
Posts: 77
Favorites: DTSI, FWLT, HSTX
Rep Power: 88
Reputation: 869 ![]() ![]() ![]() ![]() ![]() ![]()
|
Your two cents will make my day brighter. |
|
|
Rate this post
|
|
|
|
|
UberTrader
![]() Join Date: Apr 2009
Location: conyers,
Posts: 700
Favorites: KFN LVS NTE
Rep Power: 296
Reputation: 5419 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
How did your exam go kyle ??
__________________
All advice from me is guaranteed to be worth at least what you paid for it, or double your money back. All persons dealing with matters of personal finance are advised to gather information from blogs, books, radio and TV, consult with professionals, discuss the matter with anybody who will listen, and then make their own decision.
|
|
|
Rate this post
|
|
|
|
|
VIP Trader
![]() Join Date: Apr 2009
Location: Cleveland, OH
Posts: 77
Favorites: DTSI, FWLT, HSTX
Rep Power: 88
Reputation: 869 ![]() ![]() ![]() ![]() ![]() ![]()
|
|
|
|
Rate this post
|
|
|
|
|
|
UberTrader
![]() Join Date: Apr 2009
Location: conyers,
Posts: 700
Favorites: KFN LVS NTE
Rep Power: 296
Reputation: 5419 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
scheduling. In java 1.4 the thread scheduling was largely left to the OS (see Bug ID: 4985566 Equal priority threads not timslicing properly in Linux). In java 5 the JVM defaults to an Non-fair scheduling algorithm, where a thread can jump to the front of the queue if a lock becomes available. Generally this approach with be faster on enterprise systems as it means that short running threads can grab a lock instead of waiting for long running threads to finish. In certain circumstances, it can lead to starved threads, particularly when there are long running threads all contending for the same lock. This is often a sign of poorly designed synchronization. It is important to note that the JVM spec does not promise any particular order of thread scheduling, so if we plan to support multiple JVM versions, we need to make sure not to assume a thread order with default synchronization. If starvation problems do occur (I do not anticipate this), we have two options: 1) reduce the amount of synchronization, if appropriate, or 2) replace the synchronization with the Lock constructs from java.util.concurrent and it's backport. These locks allow us to specify Fair scheduling. However, I doubt this will be an issue. if it is, though it's a bug that needs to be fixed properly, instead of assuming a version. Secondly, Java 5 presents a significant performance boost using Locks over synchronized{} blocks. This advantage is not present in Java 6. Locks are slightly more difficult to use because the developer is required to unlock in a finally block. Failing to do so can lead to myriad problems down the road. Generally the explicit locks are recommended when you need a special feature not provided by intrinsic locks (timeouts, cancellations, non-block locks). In the case of core, since we we not be upgrading to java 6 for the forseeable future, we we find the places of most contention, likely the request handling code and the ResourceHome code and replace the intrinsic locks with explicit locks. This way we can gain the performance advantages without upending the entire codebase Shameless copy/paste
__________________
All advice from me is guaranteed to be worth at least what you paid for it, or double your money back. All persons dealing with matters of personal finance are advised to gather information from blogs, books, radio and TV, consult with professionals, discuss the matter with anybody who will listen, and then make their own decision.
|
|
|
|
Rate this post
|
|
|
|
|
VIP Trader
![]() Join Date: Apr 2009
Location: Cleveland, OH
Posts: 77
Favorites: DTSI, FWLT, HSTX
Rep Power: 88
Reputation: 869 ![]() ![]() ![]() ![]() ![]() ![]()
|
Nice, thanks.
Reminds me of one of the exam questions: advantage of explicit lock over intrinsic lock! XD |
|
|
Rate this post
|
|
|
|
|
UberTrader
![]() |
Stress sucks doesnt it buddy? God im glad I am done with finals till next fall lol
__________________
If you are given a chance to be a role model, I think you should always take it because you can influence a person's life in a positive light, and that's what I want to do. That's what it's all about. Tiger Woods I'm putting in my market order right now on this b! --> TTNP thread title in Premarket 5/7/09..that one is for the ages! Yes we Can...Yes we Will!!! |
|
|
Rate this post
|
|
|
|
|
Dog House
![]() Join Date: May 2009
Location: canada
Posts: 6
Rep Power: 0
Reputation: -247 ![]() ![]()
|
Yes, it is really a very good suggestion to the entire student or we can say that a good remainder for every student to remind me for the exam questions: advantage of open security device.
|
|
|
Rate this post
|
![]() |
| Thread Tools | Search this Thread |
|
|