Can anyone tell me what is the different of pthread and qthread? Are they do the same task?
Can I use pthread to replace qthread? or qthread to replace pthread?
What is GUI-thread and Non-GUI thread? Can I use GUI-thread for non-GUI? or can I use non-GUI for GUI?
I am now doing a school project.
I have to replace the MFC multi-threading by linux threading. (one part of my project)
However, I don't know how can I do.
In MFC, there are CEvent, CMutex, CCriticalSection and CSemaphore to access CSyncObject (win32). (all four objects method include in my project program)
But,..............
In Qt, there are QMutex, QSemaphore, QThread and QWaitCondition without any CSyncObject
In POSIX, there are pthread,semaphore,pipe,shared memory.
Can anyone tell me that can I use POSIX method in the Qt program?
Can I use pthread including the QThread?
Can both Qt and POSIX replace the MFC?
Which one is better to replace the MFC thread?
I really don't have any idea about thread.
Someone tell me that I can use the fork() and the shmget() to handle my task.
Can anyone help me and give me some advices??
Thank you very much