Here i created a thread and created two instance of that thread. i want both object to call the run function cuncurrently
threadNew = new ServerThread(this);
threadNew1 = new ServerThread(this);
class ServerThread : public QThread
{
Q_OBJECT
public:
ServerThread(QObject *parent);
~ServerThread();
protected:
void run();
};
Here threadNew and threadNew1 are calling the run function but not in synchronized manner
How can i do this
Bookmarks