In reply to tfitz:
Thanks a lot, for given reply.
Here “resume an event” is nothing but waiting for triggering.
Here i need to call add() method from task body() method of class B.
If i call b1[i].add() method from Class C, then we are calling add() method two times(one is from task body() of class B and second one is b1[i].add() method from Class C) i.e we are triggering same event two times for resuming one event.
may i know What is the necessity to trigger same event two times.