LinkedIn

Milan Petrovic

Advert

Bulk data loading into MySQL from Grails

Inserting large amounts of data into MySQL as fast as possible. [...]

Solving Constraints

Constraint programming in Oz [...]

Volatile and Loop Invariant Code Motion

A demonstration of visibility problem in multi-threaded programs and how volatile solves it. [...]

Lock Coarsening

Demo of lock coarsening. [...]

Windows Management Instrumentation (WMI) from Java

This post shows how to instrument Windows resources using WMI and Java. The attached source code has 3 programs:

  1. PrintInstances.java prints all instances of a given class. For e.g., to retrieve a list of services use Win32_Service in WML.
  2. SimpleServiceManager.java starts or stops a given service.
  3. ServiceManager.java starts or stops a service by starting/stopping any dependents.

[...]

Reading Squeak

Some useful Squeak links. [...]

Erlang vs. Java message passing times

Message passing times in Erlang vs. Java [...]

Erlang solution for excercise 8.11 in Programming Erlang

In my previous post, I presented a Java solution to the Ring problem. Following is my Erlang solution. [...]

Java solution for excercise 8.11 in Programming Erlang

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. [...]

Customizing java.sql.Connection, app server independent manner

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 post [...]