The term allowed to a debtor to discharge his debt.
He was sentenced to a term of six years in prison.
Does the word "term" mean the same thing in the above two sentences?
the same meaning