This routine obtains the stacksize attribute of the thread attributes object specified in the attr argument.