cmd kill process by pid

C++
## check and kill used "ports"
netstat -ano | findstr :8080
taskkill /PID <yourid> /F// Kill process by exe name
taskkill /IM "ProcessName.exe" /Fkill -9 PID # kill -9 94228taskkill /F /PID pid_numberkill SIGNAL PID

#Example
kill -9 3827

#See more information from : https://www.linux.com/training-tutorials/how-kill-process-command-line/kill process by pid
Source

Also in C++: