GHC.Conc: clarify that 'forkOn' binds to capability, not a 'CPU' or 'Task'
authorSergei Trofimovich <slyfox@gentoo.org>
Thu, 10 Jul 2014 07:56:23 +0000 (02:56 -0500)
committerAustin Seipp <austin@well-typed.com>
Thu, 10 Jul 2014 16:21:26 +0000 (11:21 -0500)
commite148d7d1c0d5db39cd494c4a9b6860cd0f0bf852
treefef4a3f35e7d3569672bc4189620e8ed9b57c283
parentc80c574fe53c76122b0e950fd88022ecc41f3a10
GHC.Conc: clarify that 'forkOn' binds to capability, not a 'CPU' or 'Task'

Summary:
Capability (HEC) can migrate to other Task (thus switch CPU)
unless capability was created as a bound haskell thread.

Task also can migrate to other CPU due to OS scheduler
(unless '-qa' RTS option is set).

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Test Plan: proofread for typos

Reviewers: simonmar, austin

Reviewed By: austin

Subscribers: simonmar, relrod, carter

Differential Revision: https://phabricator.haskell.org/D52
libraries/base/GHC/Conc/Sync.lhs