How to kill a process in a terminal inside emacs

emacs

When I code, I usually use multiple buffers in emacs. Some buffers with my code, and a buffer with a terminal emulator (M-x term), There I compile, execute interpreters, etc.

When I get an infinite loop in some computation, I cannot kill my process (As one could do with a normal terminal with Ctrl-C), since obviously the terminal embedded in emacs doesn't get the interrupt.

Is there a way to do this?

Best Answer

As mentioned in the comments, by @ALiX using Ctrl+C+ Ctrl+C (2 times) worked.