TitanicLinux.Net :: Why are save and delete not synchronized?



Why are save and delete not synchronized?

Posted by anonymous 18.01.2006 13:50

Hi there !

Can somebody explain why the generate() method is synchronized but save() and delete() are not?

I think they must be also synchronized as Thread 2 can "reset" a prepared statement while Thread 1 is already setting parameters in it.

Regards, Kai



viimeisin päivitys: 18.01.2006 13:50 Author: TitanicLinux.Net
Copyright TitanicLinux.Net 2003-2010