July 29, 2010

SABROG SABROG
Lab Rat
64 posts

Concurrent programming, lock-free multithreading

 

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?

 Signature 

QT - Apple QuickTime
Qt - Nokia’s Qt Development Frameworks
Apple is a competitor of Nokia, so QT != Qt

4 replies

July 29, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1607 posts

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

July 29, 2010

SABROG SABROG
Lab Rat
64 posts
Denis Kormalev wrote:
From my point of view QFuture and QFutureWathcer will help you.

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

 Signature 

QT - Apple QuickTime
Qt - Nokia’s Qt Development Frameworks
Apple is a competitor of Nokia, so QT != Qt

August 2, 2010

aviral aviral
Lab Rat
11 posts

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

August 9, 2010

Thomas Zander Thomas Zander
Lab Rat
219 posts

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

 
  ‹‹ How to show my .html documents on the main window at Qt help collection file(.qhc)      QToolbar ››

You must log in to post a reply. Not a member yet? Register here!