iconAll times are GMT -4. The time now is 02:57 AM. | Search:

» StockRants Stock Forum » General Forums » Traders Lounge » Rants & Blather » Stressed Out About the Final Exam



Reply
 
LinkBack Thread Tools Search this Thread
Old 05-12-2009, 12:49 AM   Nav to Top  #1
VIP Trader
 
Kyle's Avatar
 
Join Date: Apr 2009
Location: Cleveland, OH
Posts: 77
Favorites: DTSI, FWLT, HSTX
Rep Power: 88
Reputation: 869
Kyle is a splendid one to beholdKyle is a splendid one to beholdKyle is a splendid one to beholdKyle is a splendid one to beholdKyle is a splendid one to beholdKyle is a splendid one to beholdKyle is a splendid one to behold
Default Stressed Out About the Final Exam

Stressed out about the final exam tomorrow. Needing quick help with Threads (subtopics: intrinsic lock, explicit lock, Executors class) in Java Language.

Your two cents will make my day brighter.
Kyle is offline   Rate this post Yes | No Reply With Quote
Old 05-17-2009, 03:39 AM   Nav to Top  #2
UberTrader
 
chuckd's Avatar
 
Join Date: Apr 2009
Location: conyers,
Posts: 700
Favorites: KFN LVS NTE
Rep Power: 296
Reputation: 5419
chuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond repute
Default

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.
chuckd is offline   Rate this post Yes | No Reply With Quote
Old 05-22-2009, 05:29 PM   Nav to Top  #3
VIP Trader
 
Kyle's Avatar
 
Join Date: Apr 2009
Location: Cleveland, OH
Posts: 77
Favorites: DTSI, FWLT, HSTX
Rep Power: 88
Reputation: 869
Kyle is a splendid one to beholdKyle is a splendid one to beholdKyle is a splendid one to beholdKyle is a splendid one to beholdKyle is a splendid one to beholdKyle is a splendid one to beholdKyle is a splendid one to behold
Thread Starter
Default

Originally Posted by chuckd View Post
How did your exam go kyle ??
I ended up doing okay on it.
Kyle is offline   Rate this post Yes | No Reply With Quote
Old 05-22-2009, 10:41 PM   Nav to Top  #4
UberTrader
 
chuckd's Avatar
 
Join Date: Apr 2009
Location: conyers,
Posts: 700
Favorites: KFN LVS NTE
Rep Power: 296
Reputation: 5419
chuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond reputechuckd has a reputation beyond repute
Default Does this help ??

Originally Posted by Kyle View Post
Stressed out about the final exam tomorrow. Needing quick help with Threads (subtopics: intrinsic lock, explicit lock, Executors class) in Java Language.

Your two cents will make my day brighter.
One of the concerns with an upgrade to Java 5 was the semantics of Thread
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.
chuckd is offline   Rate this post Yes | No Reply With Quote
Old 05-22-2009, 11:13 PM   Nav to Top  #5
VIP Trader
 
Kyle's Avatar
 
Join Date: Apr 2009
Location: Cleveland, OH
Posts: 77
Favorites: DTSI, FWLT, HSTX
Rep Power: 88
Reputation: 869
Kyle is a splendid one to beholdKyle is a splendid one to beholdKyle is a splendid one to beholdKyle is a splendid one to beholdKyle is a splendid one to beholdKyle is a splendid one to beholdKyle is a splendid one to behold
Thread Starter
Default

Nice, thanks.

Reminds me of one of the exam questions: advantage of explicit lock over intrinsic lock! XD
Kyle is offline   Rate this post Yes | No Reply With Quote
Old 05-22-2009, 11:40 PM   Nav to Top  #6
UberTrader
 
Superfly's Avatar
 
Join Date: Apr 2009
Location: Twin Cities/Minocqua WI
Posts: 397
Favorites: RIG, HEB, LVS, KFN
Rep Power: 231
Reputation: 4139
Superfly has a reputation beyond reputeSuperfly has a reputation beyond reputeSuperfly has a reputation beyond reputeSuperfly has a reputation beyond reputeSuperfly has a reputation beyond reputeSuperfly has a reputation beyond reputeSuperfly has a reputation beyond reputeSuperfly has a reputation beyond reputeSuperfly has a reputation beyond reputeSuperfly has a reputation beyond reputeSuperfly has a reputation beyond repute
Send a message via MSN to Superfly Send a message via Skype™ to Superfly
Default

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!!!
Superfly is offline   Rate this post Yes | No Reply With Quote
Old 06-02-2009, 05:14 AM   Nav to Top  #7
Dog House
 
pearlpam's Avatar
 
Join Date: May 2009
Location: canada
Posts: 6
Rep Power: 0
Reputation: -247
pearlpam is infamous around these partspearlpam is infamous around these partspearlpam is infamous around these parts
Default

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.
pearlpam is offline   Rate this post Yes | No Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On