Answer:
Process P1 can immediately be allocated all its tape drives and then return them (the system will then have five available tape drives);
then process P0 can get all its tape drives and return them (the system will then have ten available tape drives); and finally process P2 can get all its tape drives and return them (the system will then have all twelve tape drives available).
Process P1 can immediately be allocated all its tape drives and then return them (the system will then have five available tape drives);
then process P0 can get all its tape drives and return them (the system will then have ten available tape drives); and finally process P2 can get all its tape drives and return them (the system will then have all twelve tape drives available).
You may be interested in:
OS Deadlocks MCQs