If this is a code which is executed by a thread, then as far as sleep's specification is concerned, it will not free the lock which is currently on object.
Is it possible to use the "object" to do some other opnerations on it?
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
a bit of art, as a gift, that will fit in a stocking