March 10, 2010
JavaOne: Call for Papers closes this Sunday, March 14. Entry posted to my new blog.
More »
March 09, 2010
rkusterer: Time to Join the NetBeans Community Testing Programs!. On Twitter, there was a tweet from @javatools asking "Want to help testing NetBeans and have your name included in the NetBeans source code?" and pointing us to rkusterer's Time to Join the NetBeans Community Testing Programs! page: "The NetBean...
More »
March/2010
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
| | 1 |
2 |
3 |
4 |
5 | 6 | | 7 |
8 |
9 |
10 |
11 |
12 | 13 | | 14 | 15 | 16 | 17 | 18 | 19 | 20 | | 21 | 22 | 23 | 24 | 25 | 26 | 27 | | 28 | 29 | 30 | 31 | | | |
|
 |
Carol McDonald Describes Locking and Concurrency in JPA 2.0
In her lastest Enterprise Tech Tip, Carol McDonald writes about Locking and Concurrency in Java Persistence 2.0. I'm pointing out Carol's article in Java Today, but I'd also like to talk a bit more about what she covers here.
If you haven't done a lot of work with databases, in particular what I'd call "low-level" work on tuning the performance of databases in an enterprise environment, then it's possible that you've never really given much thought to the problems of locking and concurrency. Yet, these are fundamental to the reliablility of database transactions. As Carol says:
Locking is a technique for handling database transaction concurrency. When two or more database transactions concurrently access the same data, locking is used to ensure that only one transaction at a time can change the data.
Sounds simple enough, right? But, it's not quite that simple, because a single method for performing locking may work well under some conditions, and poorly under others. Carol explains:
There are generally two locking approaches: optimistic and pessimistic. Optimistic locking assumes that there will be infrequent conflicts between concurrent transactions, that is, they won't often try to read and change the same data at the same time. In optimistic locking, the objective is to give concurrent transactions a lot of freedom to process simultaneously, but to detect and prevent collis...
Date: September, 15 2009
Url: http://www.java.net/blog/editor/archive/2009/09/14/carol-mcdonald-describes-locking-and-concurrency-jpa-20
Others News
Leave a Reply
Related
|