sentence: objects with lock ( e.g. , as in java and c# ) can be modeled as a serializer , provided that their implementations are such that messages can continually arrive ( perhaps by being stored in an internal queue ) .