Changes between Version 6 and Version 7 of FAQ


Ignore:
Timestamp:
Dec 16, 2005 9:21:39 AM (10 years ago)
Author:
simonpj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FAQ

    v6 v7  
    132132= Other frequently asked questions =
    133133
     134== When do other Haskell threads get blocked by an FFI call? ==
     135
     136||               || safe || unsafe ||
     137|| -threaded     || NO   ||YES     ||
     138|| no -threaded  || YES  ||YES     ||
     139
     140The `-threaded` flag (given when linking; see the
     141[http://www.haskell.org/ghc/docs/latest/html/users_guide/flag-reference.html manual])
     142allows other Haskell threads to run concurrently with an FFI call,
     143including an FFI call that blocks (waiting on a socket, for example).
     144This nice behaviour does not happen for foreign calls marked as `unsafe` (see
     145the [http://www.cse.unsw.edu.au/~chak/haskell/ffi/ FFI Addendum]).
     146
     147In GHC the `threadsafe` modifier on a foreign call means the sae as `safe`. (The former is deprecated.)
     148
     149
     150
    134151== Do I have to recompile all my code if I upgrade GHC? ==
    135152