Forums Register Login

Testing if your locking works

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
Hi

there is a post under the name"junit test cases"

it has a pretty good test cases which most people have used and commented on.
I guess that would help. But havent reached there yet myself.

Mary
I didn't like the taste of tongue and it didn't like the taste of me. I will now try this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 626 times.
Similar Threads
lock & unlock
Test Client For FBN
Locking Code
Scjd B&S- Failed due to locking.
Lock question!
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:40:19.