Unmesh Chowdhury wrote:You can try with the following three classes:
Thats a nice example.
I was wondering if its possible to have the push logic in the push class and pop logic in the pop class and still access the shared resource. To answer my own question we could synchronize on the resource itself,
push or pop logic
I assume thats what the original question was leaning towards.