NestedThreadModeExample

Last edit July 6, 2014
This is the same example sequence given on InterleavedParallelThreadMode, but using NestedThreadMode instead of regular ThreadMode and including a summary.


Stage one

Cats are nice. I don't like dogs. Oxygen is good. -- JoeBloggs


Stage two

Cats are nice. I don't like dogs. Oxygen is good. -- JoeBloggs

  • I don't agree with you about cats. They're an abomination from hell. Also, dogs are the nicest animals on the planet. And oxygen is overrated. -- FredBlaggs


Stage three-A: preparing to post his reply, JoeBloggs splits FredBlaggs' last comment across multiple points.

Cats are nice. I don't like dogs. Oxygen is good. -- JoeBloggs

  • I don't agree with you about cats. -- FredBlaggs

  • Cats are an abomination from hell. -- FredBlaggs

  • Dogs are the nicest animals on the planet. -- FredBlaggs

  • Oxygen is overrated. -- FredBlaggs


Stage three-B: JoeBloggs posts his reply to each of FredBlaggs' points separately

Cats are nice. I don't like dogs. Oxygen is good. -- JoeBloggs

  • I don't agree with you about cats. -- FredBlaggs

    • How dare you! Cats are lovely, lovely, lovely. -- JB

  • Cats are an abomination from hell. -- FredBlaggs

    • Blasphemy! -- JB

  • Dogs are the nicest animals on the planet. -- FredBlaggs

    • Apart from dogs. And weasels. And everything else. -- JB

  • Oxygen is overrated. -- FredBlaggs

    • Provided you don't care about breathing, anyway. -- JB


Stage four

Cats are nice. I don't like dogs. Oxygen is good. -- JoeBloggs

  • I don't agree with you about cats. -- FredBlaggs

    • How dare you! Cats are lovely, lovely, lovely. -- JB

      • What's so great about cats, then? I think they're boring. -- EthelFnord

  • Cats are an abomination from hell. -- FredBlaggs

    • Blasphemy! -- JB

      • There's nothing blasphemous about that. -- EthelFnord

  • Dogs are the nicest animals on the planet. -- FredBlaggs

    • Apart from dogs. And weasels. And everything else. -- JB

      • I don't understand. Joe, do you like weasels or not? JaneDoe

  • Oxygen is overrated. -- FredBlaggs

    • Provided you don't care about breathing, anyway. -- JB

      • Perhaps Fred breathes something other than oxygen? -- EthelFnord


Stage Five - Summary

  • Dogs, Cats, and Weasals are animals. So are people.

  • Some people like them, others are indifferent or don't like them.

  • Oxygen is one of the essential elements required by animals.

  • Some of you are ok with this, some of you are not.