Results 1 to 2 of 2

Thread: Qt threading stupid questions

  1. #1
    Join Date
    Nov 2015
    Qt products
    MacOS X

    Default Qt threading stupid questions

    Hi, I have several questions:

    1. Question: Yes/No?. It is a right statement? Each thread has it's own function call stack, but all threads share the same memory space?

    2. Question: Yes/No?. I have a room, a room can contain 5 persons (threads) and have 3 boxes(simple array). So if a person inherits thread, I should use semaphore for defining how many persons can be in a room? (do not allow 10 persons come to room) and for opening closing boxes should stand mutexes (write/read single array)?

    3. Question: Real software situations for using semaphore?

    4. Can be a valid situation where two threads can access to the same object(data) at the same time? if yes please provide examples.

    5. Real software situations for using: 1 QThread 2. QRunnable + QThreadPool 3. QtConcurrent 4. QProcess

    6. Can I make deep copy of QThread?

    7. Open source project where would be used Qt multithreading?

    Thank you :}

  2. #2
    Join Date
    Jan 2006
    Graz, Austria
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Unix/X11 Windows

    Default Re: Qt threading stupid questions

    That sounds a lot like course assignment.
    In which case it would not be a good idea to answer those, right?


Similar Threads

  1. Stupid Windows Compilation Trick
    By skepticalgeek in forum Qt Programming
    Replies: 19
    Last Post: 14th September 2010, 18:39
  2. Replies: 3
    Last Post: 26th May 2009, 22:12
  3. Stupid list widget won't clear
    By scwizard in forum Qt Programming
    Replies: 14
    Last Post: 5th July 2007, 17:03
  4. probably a stupid question...
    By nikita in forum Qt Programming
    Replies: 3
    Last Post: 16th November 2006, 10:45

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.