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"); 
5
  • stackoverflow.com/questions/10422145/… Commented Aug 21, 2015 at 5: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 Commented Aug 21, 2015 at 5:19
  • ah I see, may be this? stackoverflow.com/questions/2632594/… Commented Aug 21, 2015 at 5:35
  • thanks arun my issue is solved Commented Aug 21, 2015 at 6:42
  • Glad that helped! most welcome Noor :-) Commented Aug 21, 2015 at 6:45

1 Answer 1

-3

Maybe you can use the QMutex.

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

Sign up to request clarification or add additional context in comments.

1 Comment

Did you read the question?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.