Design Question 1:
Design an API which has following set of synchronous (denoted as S1, S2 and so on) and asynchronous instruction (denoted as AS1, AS2 and so on).
API (S1, AS1, S2, AS2, S3)
All these instruction will get invoked in sequence as mentioned above.
Synchrnous instruction will always execute in seqential manner.
We have to design the system for following two scenarios:
Question 2:
One class (named as Resources) is having two methods.
We have to implement this class with following constraint.