mencegah membuat instance singleton dari utas

// for java
// ** use 'synchronized' keyword in function declaration

public static synchronized Database getInstance(){...}
Fahim Foysal