Hi,
Can someone telle me what the difference is between following (from the view of a programmer and from the view of the operating system):
1) creating other Threads in an existing Thread-Instance of a Thread-Class
2) creating two instances of a Thread-Class
What is the difference between both when we look at memory usage?ThreadClass a[0] = new ThreadClass()
ThreadClass a[1] = new ThreadClass()
Would the threads of number (2) disturb each other, while accessing variables?
The second one sounds like two seperate "processes", which have seperate memory.
I have no example for number (1)
Can someone show me an example how I can create a second Thread in an existing Thread instance like:
ThreadClass b = new ThreadClass();
(Thread-Class = derived from QThread)
Thanks
Bookmarks