Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Concurrent programming, lock-free multithreading
Qt 6.11 is out! See what's new in the release blog

Concurrent programming, lock-free multithreading

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 5.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Imaging what i have 2 core processor. One core receive incoming connection and call function from other core for handle it connection. Requirements:

    • First core never wait Second core
    • First core must get result of called function from Second core, when it finished
    • First core must restore local variables (stack frame) what be used when call function from Second core (like in Closures)

    How I can do this with Qt?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      From my point of view QFuture and QFutureWathcer will help you.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        [quote author="Denis Kormalev" date="1280404164"]From my point of view QFuture and QFutureWathcer will help you.[/quote]

        I think i need multi-threaded non-blocking closures.

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          here is a choice link ( though link examples in java) you can take ur pick from it most likely and transform to Qt http://www.vogella.de/articles/JavaConcurrency/article.html

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Here is a good starting point for this kind of problem; http://doc.qt.nokia.com/latest/threads-qtconcurrent.html

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved