<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Peter Verswyvelen wrote:<br>
<br>
<a moz-do-not-send="true"
 href="http://www.haskell.org/ghc/docs/2.10/users_guide/user_146.html">&gt;
http://www.haskell.org/ghc/docs/2.10/users_guide/user_146.html
</a>seems to confirm that?<br>
<br>
Oops, sorry, these seems to be docs for Concurrent Haskell... But maybe
the experts can confirm if the principle still stands?<br>
<br>
<br>
<blockquote cite="mid:46F4F45C.1090901@telenet.be" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
I guess you entered a black hole! :-)<br>
  <br>
The problem is that don't understand black holes myself, I just got
introduced with the same thing yesterday :-) I confused me a lot too.<br>
  <br>
The only explanation I could give you intuitively is that GHCi is
running in multi threaded execution mode, and that two or more
execution threads are waiting for each other forever, creating a
"deadlock".<br>
  <br>
  <a moz-do-not-send="true"
 href="http://www.haskell.org/ghc/docs/2.10/users_guide/user_146.html">http://www.haskell.org/ghc/docs/2.10/users_guide/user_146.html
  </a>seems to confirm that?<br>
  <br>
If you try the same using (Win)HUGS, you'll get 100% CPU time usage.<br>
  <br>
Cheers,<br>
Peter Verswyvelen<br>
  <br>
Pasqualino 'Titto' Assini wrote:
  <blockquote cite="mid:200709221054.22992.tittoassini@gmail.com"
 type="cite">
    <pre wrap="">Hi,

if I define:

f = f

and then try to evaluate 'f'  in GHCi, as one would expect, the interpreter 
never returns an answer.

The funny thing is that, while it is stuck in an infinite loop, GHCi doesn't 
seem to use any CPU time at all.

How is this possible?

Thanks

            titto






_______________________________________________
Haskell-Cafe mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a>


  </pre>
  </blockquote>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Haskell-Cafe mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a>
  </pre>
</blockquote>
<br>
</body>
</html>