Philips interview question

Lot of Questions from multi threading