**OCP, Java SE 6 Programmer**OCM, Java SE 6 Developer**
Rehan Zahoor wrote:I created 4 threads and performed more database update/create operations and data was corrupting more often. The delete bits in the start of the record get smashed.
**OCP, Java SE 6 Programmer**OCM, Java SE 6 Developer**
Rehan Zahoor wrote:My db package is quite similar in design to Monkhouse's db package. If my threads all use the same Data class(similar to DvdDatabase class of Monkhouse) object then the database file is not corrupt. While if they all create their own Data objects, then file is corrupted. Is it the right behavior?
K. Tsang CEng MBCS PMP PMI-ACP OCMJEA OCPJP
Curse your sudden but inevitable betrayal! And this tiny ad too!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|