ReadWriteProblem - Java and C#