Results 1 to 2 of 2

Thread: Qt threading stupid questions

  1. #1
    Join Date
    Nov 2015
    Posts
    1
    Qt products
    Qt5
    Platforms
    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
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    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?

    Cheers,
    _

Similar Threads

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

Tags for this Thread

Bookmarks

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.