The pkill command uses name of the process instead of PID number. Signal can be send to a process either by typing full name or partial name.
While specifying partial name, the specified name should be within first 15 characters of the process name.
pkill -2 sample
With above example, signal will be sent to all the process which has sample in its name.