Does anyone know if there is possibility of doing Atomic Operations in
****** NEW Lines:
Particularly I am interested to have the solution on Windows NT Platform.
I want to COMMIT to a database (operation 1) and rename a file (operation 2) in one operation. Operation 2 is to be done after Operation 1 but I don't want to do Operation 1 without making sure that Operation 2 is also done!!
By Atomic I mean a block of code that either gets executed entirely
without interruption by the CPU or it does not get executed at all.
I might be wrong but I think Synchronize keyword in Java does that.