Multiple threads output

The order of the output you see from this program is implementation dependent, and mostly unpredictable. It may look something like this:

-128
-127
-126
-125
-124
-123
...
125
126
127
-128
-127
-126
-125
-124
-123
...
125
126
127
-128
-127
-126
-125
-124
-123
...
125
126
127
In this case the three thread's run sequentially, one ofter the other. However on a few systems you may see something different


Previous | Next | Top
Last Modified December 2, 1997
Copyright 1997 Elliotte Rusty Harold
elharo@metalab.unc.edu