Hi all
i am having C# application which is processing 5 urls asychronously
using webrequest and webresponse classes.
What i want is as soon as any url request processing is completed i
want to decrement one counter and increment another count.
How should i do this in call back.
Do i need to use monitor so that no two calls can modified that counter
at the same time or without using any sychronous object i can do this.
Because when i am using monitor on counter, some time even if i have
statment like following.
system.monitor.enter(counter);
counter--;
system.monitor.exit(counter);
counter is not getting decremented.
can some one help me.
thanks in advance.