-1
$\begingroup$

I came accross the question regarding program overlays,

Program1 is of 100kB and program2 is of 90kB and common code is 10kB and overlay driver is 20kB and error handling routine is 50kB, min memory required when there is no error?

according to me it should be 100 + 20 + 10 = 130; as there is no error..
but ans is 180; they are considering error handling routine also in account..

I am not getting why error handling routine, if there is no error?

$\endgroup$
2
$\begingroup$

What would happen if the overlay driver experienced an error and the error handling routines weren't loaded? You should think of the error handling routines as being a necessary part of the overlay driver.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.