Use of synchronized methods in components
Cantor, Scott
cantor.2 at osu.edu
Tue May 6 10:54:20 EDT 2014
On 5/6/14, 10:52 AM, "Rod Widdowson" <rdw at steadingsoftware.com> wrote:
>
>"If I have to use explicit locking when I call any method in that class in
>order to get the desired semantics in an asynchronous world, then its
>explicitly not thread safe"
Yes.
>I'll buy that (I think). I don't think I would find it useful except
>perhaps
>I'd want to ask some piercing questions if we wanted to expose non thread
>safe classes - that¹s an invitation to people to screw up. That¹s why we
>invented the service abstraction.
That and prototypes. All the actions are mostly non-safe for example. So I
do think it's useful notation.
-- Scott
More information about the dev
mailing list