Hello all.
How do you test if your locking works. I am thinking of just creating a unit test to spawn off a few threads that call the updateRecord(recNo, data) (which encapsulates the lock and unlock) function using the same recNo for both threads. Would this suffice ?
Thanks
Michael
How do you test if your locking works. I am thinking of just creating a unit test to spawn off a few threads that call the updateRecord(recNo, data) (which encapsulates the lock and unlock) function using the same recNo for both threads. Would this suffice ?
Thanks
Michael