BookStore demo improvement #3
Replies: 5 comments
-
Hi, that's a good idea. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@fh-ms thanks for the fast turnaround! One caveat though - i really have not tested my suggestion above that well (will do it shortly though). A few questions:
|
Beta Was this translation helpful? Give feedback.
-
@fh-ms I reviewed your code and I have a question - are the total stripes always 4? Should stripeCount be transient at all? public ReadWriteLockedStriped()
{
super();
} Attached is my latest edition of the two files - they reuse code between each other and is even less code because of that. |
Beta Was this translation helpful? Give feedback.
-
Yes, the stripe count should be configurable. |
Beta Was this translation helpful? Give feedback.
-
Hello,
Currently the Book Store demo uses Guava just for one dependency - striped locks. I wonder if we can get rid of it and replace it with some better/modern clean Java implementation, for example:
Beta Was this translation helpful? Give feedback.
All reactions