The threadId must be an unsigned 16 bit