Hi Alan,
This issue is depending on your architecture more precisely on your server architecture, by example you choose to have a more data Data instance(I here I presume that the Data class owns the create(
String[]) method)then the synchronized the useless. What is really important is that the file hander - the class which read/write your db file has all the important method synchronized.
If two threads access in the same time your create method and and your "physical write" is synchronized then you can let the create unsynchronized.
And a final note, may be I am wrong, is not such a good idea to have the Data methods synchronized because the the LockManager is responsible for the "thread handling".
Regards M.
[ September 22, 2006: Message edited by: Mihai Radulescu ]
[ September 22, 2006: Message edited by: Mihai Radulescu ]