[Tutor] Starbucks does not use two-phase commit

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Mon Jan 23 22:05:43 CET 2006



On Mon, 23 Jan 2006, Bernard Lebel wrote:

> Yes that makes sense, but...... what is a "daemon"? Sorry if this is
> super basic question.

According to:

    http://docs.python.org/lib/thread-objects.html

    """A thread can be flagged as a ``daemon thread''. The significance of
    this flag is that the entire Python program exits when only daemon
    threads are left. The initial value is inherited from the creating
    thread. The flag can be set with the setDaemon() method and retrieved
    with the isDaemon() method."""

So that's what "daemon" technically does when we apply that term it to a
thread.


But what it means to us humans is up to interpretation: I think of daemon
threads as being more "ephemeral" than other threads.  Not sure if that
makes any sense to anyone besides myself, though.  *grin*

There's a traditional use of the word "daemon" that deals with programs
that run in the background:

    http://en.wikipedia.org/wiki/Daemon_(computer_software)

so the word "daemon" is, like most words, a bit overloaded.  *grin*



More information about the Tutor mailing list