If program crashes , How can I find the id of this program? . I do not the name of the unresponsive program.
you can use task manager. When you pull it up, right click on the unresponsive program and then click "go to process" Then by clicking "view" then "Select Columns" you can add the column PID. Then determine the PID from that.
There are a several ways ways.
First, download and run 'htop' from inside a terminal. You can sort processes by CPU usage - if you have a process not responding, often these will be chugging CPU like none other.
Alternately, try running 'ps -A' in a terminal. This will give you a list of processes, and if you have a general idea of what the process is, you can then see its PID and thus kill it.
Finally, and probably most usefully, if the unresponsive program is a graphical program, and you just want to kill it rather than find outs its PID, run 'xkill' from the alt-f2 popup. This will turn your cursor into a skull and crossbones, and if you just click the unresponsive window it will be killed instantly.