Oliver Kowalke
2fff971242
fix unsufficent synchronization of work-stealing algorithms
2018-08-21 09:53:37 +02:00
oliver Kowalke
514aa157ea
examples: barrier sync. threads renamed to thead_barrier
2017-11-17 10:05:53 +01:00
Oliver Kowalke
328bf234d1
fix examples for Solaris
2017-06-17 15:07:14 +02:00
Oliver Kowalke
4bb776e515
add work-stealing example
2017-06-13 17:52:00 +02:00
oliver Kowalke
8496dbf9c8
remove unused example
2017-03-03 09:48:11 +01:00
Oliver Kowalke
fa071c27cf
use SPMC (chase-lev algoritm) for ready-queue (work stealing)
2016-11-03 11:05:51 +01:00
Oliver Kowalke
c9fd43549b
remove example work_stealing
2016-05-22 18:15:49 +02:00
Oliver Kowalke
8bd1006634
add random_chase_lev algorithm
2016-05-16 14:25:19 +02:00
Oliver Kowalke
310f3ce2f2
move sched_algorithm to algo::algorithm
...
- new namesapce algo
- shared_round_robin with shared ready queue
2016-05-13 20:14:48 +02:00
oliver Kowalke
4d47c74911
examples work sharing/stealing: spin in suspend_until()
...
- no fiber will sleep in both examples
- threads spin in dispatcher-fiber calling sched_algo::suspend_until()
because thread should not be blocked if no ready fiber is available
2016-05-09 12:00:37 +02:00
Nat Goodspeed
f910b356cc
Fix spelling of "thief" (stolen h)
2016-05-02 15:03:11 -04:00
Oliver Kowalke
968c32c842
replace context::migrate() by context::attach()/context::detach()
2016-05-02 18:56:17 +02:00
oliver Kowalke
768ca27f1a
example work_stealing: use std::deque<> as ready-queue
2016-04-25 10:30:33 +02:00
oliver Kowalke
5027d3526f
impl. remote-ready-queue with std::vector<>
2016-04-18 12:52:48 +02:00
Oliver Kowalke
e43cf5b1ac
enum for context types
2016-02-15 19:49:22 +01:00
Oliver Kowalke
59a4317bf3
use condition_variable::wait(lk,pred)
2016-02-02 17:07:29 +01:00
Oliver Kowalke
a4c2315c54
fix examples because autoreset_event was removed
2016-01-25 21:47:58 +01:00
Oliver Kowalke
db180f08da
relax to C++11
2015-12-12 23:19:33 +01:00
Oliver Kowalke
726d4d51b9
++14 polishing
2015-12-01 21:07:11 +01:00
Oliver Kowalke
a71e19ec4b
fix work-stealing example
2015-11-11 07:18:32 +01:00
Oliver Kowalke
5973f6a262
add work-stealing example
2015-10-21 15:26:55 +02:00