Lines Matching refs:fiber
16 Each fiber owns a stack and manages its execution state, including all
18 means, in general, a fiber is not bound to a specific thread.[footnote The
19 ["main] fiber on each thread, that is, the fiber on which the thread is
21 creates a dispatcher fiber for each thread [mdash] this cannot migrate
23 fiber that relies on [link thread_local_storage thread-local storage].]
25 Migrating a fiber from a logical CPU with heavy workload to another
28 migrate data between threads. Suppose fiber ['f] is running on logical CPU
30 the physical memory located at ['node0]. Migrating the fiber from ['cpu0] to
36 threads. You cannot migrate a running fiber, nor one that is __blocked__. You
37 cannot migrate a fiber if its [member_link context..is_context] method returns
40 In __boost_fiber__ a fiber is migrated by invoking __context_detach__ on the
41 thread from which the fiber migrates and __context_attach__ on the thread to
42 which the fiber migrates.
44 Thus, fiber migration is accomplished by sharing state between instances of a
45 user-coded __algo__ implementation running on different threads. The fiber[s]
47 fiber[s] [class_link context][^*]. The `awakened()` implementation calls
52 fiber and calls __context_attach__ on it before returning it.
62 multiple worker fibers are created on the main thread. Each fiber gets a
64 Between each iteration the fiber calls __yield__. That puts the fiber in the
65 ready queue of the fiber-scheduler ['shared_ready_queue], running in the current
67 The next fiber ready to be executed is dequeued from the shared ready queue
77 In `main()` the fiber-scheduler is installed and the worker fibers and the
82 The start of the threads is synchronized with a barrier. The main fiber of
84 complete. When the main fiber returns from __cond_wait__, the thread
89 Each worker fiber executes function `whatevah()` with character `me` as
90 parameter. The fiber yields in a loop and prints out a message if it was migrated
98 The fiber scheduler `shared_ready_queue` is like `round_robin`, except that it
108 main fiber and dispatcher fibers: these may ['not] be shared between threads!
111 execute thread A[s] main fiber.
115 When __algo_pick_next__ gets called inside one thread, a fiber is dequeued from