Let $G$ and $H$ are groups and $f:G\to H$ is group homomorphism. The kernel $f$ is defined by \begin{align*} \ker f =\{ g\in G \ : \ f(g)=1_{H}\}. \end{align*} And let $S$ and $T$ are Semigroups and $\varphi:S\to T$ is semigroup homomorphism. The kernel $\varphi$ is defined by \begin{align*} \ker \varphi=\{(s, s') \in S\times S \ : \ \varphi(s)=\varphi(s')\}. \end{align*} I know category of groups has a zero morphism, then the equalizer of zero morphism $0_{GH}:G\to H$ and $f:G\to H$ is kernel of $f$. But category of Semigroups doesn't has zero morphism.
I have two questions:
What is the relation between these kernels.
What is the definition of kernels in the category has no zero object or zero morphism.
Thank you