previous | start | next

## Thread Example

- Note: output not exactly interleaved

    1: Hello, World!

    1: Goodbye, World!

    2: Hello, World!

    2: Goodbye, World!

    3: Hello, World!

    3: Goodbye, World!

    4: Hello, World!

    4: Goodbye, World!

    5: Hello, World!

    5: Goodbye, World!

    6: Hello, World!

    6: Goodbye, World!

    7: Hello, World!

    7: Goodbye, World!

    8: Goodbye, World!

    8: Hello, World!

    9: Goodbye, World!

    9: Hello, World!

    10: Goodbye, World!

    10: Hello, World!

previous | start | next