Priorities

John Goerzen jgoerzen at complete.org
Fri Feb 3 12:18:58 EST 2006


On Fri, Feb 03, 2006 at 05:56:41PM +0100, Tomasz Zielonka wrote:
> On Fri, Feb 03, 2006 at 10:03:08AM -0600, John Goerzen wrote:
> > I know, of course, that Java green threads and Haskell forkIO threads
> > are called "threads", but I personally believe its misleading to call it
> > concurrency -- they're not doing more than one thing at a time.
> 
> Aren't you thinking about Parallellism?

No.

> http://en.wikipedia.org/wiki/Concurrency_%28computer_science%29
>     In computer science, concurrency is a property of systems which
>     consist of computations that execute overlapped in time

You're not doing anything simultaneously ("overlapped in time") when
you're using poll and select (only).  To do something simultaneously in
Unix, you'd have to either use fork() or start a thread.

-- John


More information about the Haskell-prime mailing list