Lock Coarsening
by vijay • November 25, 2009 • Java • 0 Comments
Demo of lock coarsening.
Read more →Demo of lock coarsening.
Read more →This post shows how to instrument Windows resources using WMI and Java. The attached source code has 3 programs:
PrintInstances.java prints all instances of a given class. For e.g., to retrieve a list of services use Win32_Service in WML.
SimpleServiceManager.java starts or stops a given service.ServiceManager.java starts or stops a service by starting/stopping any dependents.Some useful Squeak links.
Read more →In my previous post, I presented a Java solution to the Ring problem. Following is my Erlang solution.
Read more →Create N processes in a ring. Send a message round the ring M times so that a total of N * M messages get sent. Time how long this takes for different values of N and M.
Read more →This post explains how to customize a java.sql.Connection by overriding default properties. I demonstrate the topic by changing the isolation level of Connection object obtained from WebSphere server. By default the connection obtained from WebSphere 5.1 JNDI has a transaction isolation level of “Repeatable Read”. If you ever wanted to change this level today’s...
Read more →A demonstration of problem when volatile is not used.
The advantage of using JMS Queues or Topics is that messages can be processed asynchronously. Sometimes you need to pause the processing temporarily. Say for example, your messages write data to a database but the database is shutdown in the evenings. What do you do with the messages in the Queue or Topic? The...
Read more →