0

I am beginner to QT. I am working on a QT application. I have to run a list of processes if it is not running in the memory. The problem is how can i detect a process is already running in the memory or not. For example i have a process name abc than how can i detect it is already running. Something i need is like

QProcess *p = new QProcess();
int status = p->start("check if abc is running or not");
Noor
  • 99
  • 2
  • 12
  • http://stackoverflow.com/questions/10422145/how-to-check-if-a-process-is-running-or-not – Arun Aug 21 '15 at 05:15
  • @Arun i searched for it will show if the QProcess instance is running a process i need to find if the process 'abc' is running in the memory where `abc` is the process name – Noor Aug 21 '15 at 05:19
  • ah I see, may be this? http://stackoverflow.com/questions/2632594/get-all-running-processes-info-using-qprocess – Arun Aug 21 '15 at 05:35
  • thanks arun my issue is solved – Noor Aug 21 '15 at 06:42
  • Glad that helped! most welcome Noor :-) – Arun Aug 21 '15 at 06:45

1 Answers1

-3

Maybe you can use the QMutex.

http://doc.qt.io/qt-4.8/qmutex.html

Ilho Yu
  • 28
  • 3