Problem with CPU time in killing process
we have a system named Flexpos and a software named pehchan pro.
the features of flexpos
1. touch screen monitor with small briefcase like cpu attached to it
2.the monitor can be bent and put flat on the cpu
this should be given to client with that s/w pehchan pro installed. when the system starts
only that pehchan pro exe should load(automatically)
we can do that if we kill all processes when the system starts and start pehchanpro exe manually
I'm able to kill the process explorer.exe but it's starting again automatically.if we keep on
killing that process continously by using for loop our requirement will be satisfied.
but it takes 100% cpu time and the system becomes very slow
code to kill the process explorer.exe
Process[] myProcesses;
myProcesses = Process.GetProcessesByName("explorer");
//MessageBox.Show(myProcesses[0].ToString());
foreach(Process myProcess in myProcesses)
{
myProcess.Kill();
}
|