When is torture justified?

Suppose you know that there is a bomb about to go off which could claim thousands of victims. You have good reason to believe that a prisoner knows where it is, and that torture may force him to tell. Would you allow him to be tortured? (Economist.com)

If you would,

then how much cruelty would be permitted? Would threats against the prisoner’s family be all right? His neighbours? His country?