Creation should include the modifier synchronized (synchronized (obj) { statements }, which
obtains the lock on obj before executing statements in block
releases the lock when the statements block completes.