A threat is basically a declaration of intent to inflict punishment or harm or loss on another. However, in many cases the threat is not believed, or may even be a joke. Like other communications a threat has a context, and the context decides its meaning.