Concurrent programming, lock-free multithreading
-
wrote on 29 Jul 2010, 09:57 last edited by
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?
-
wrote on 29 Jul 2010, 11:49 last edited by
From my point of view QFuture and QFutureWathcer will help you.
-
wrote on 29 Jul 2010, 13:06 last edited by
[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.
-
wrote on 2 Aug 2010, 10:54 last edited by
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
-
wrote on 9 Aug 2010, 10:59 last edited by
Here is a good starting point for this kind of problem; http://doc.qt.nokia.com/latest/threads-qtconcurrent.html