Skip to content

Commit 330a823

Browse files
TashasEvBillWagner
authored andcommitted
Adds sample output per issue #1265 (#806)
I added some sample output and an explanation of how the output can vary. Addresses dotnet/dotnet-api-docs#1265
1 parent 108719d commit 330a823

File tree

1 file changed

+11
-1
lines changed
  • snippets/visualbasic/VS_Snippets_CLR_System/system.threading.threadlocal/vb

1 file changed

+11
-1
lines changed

snippets/visualbasic/VS_Snippets_CLR_System/system.threading.threadlocal/vb/threadlocal.vb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,14 @@ Module ThreadLocalDemo
3232
ThreadName.Dispose()
3333
End Sub
3434
End Module
35-
'</snippet01>
35+
' This multithreading example can produce different outputs for each 'action' invocation and will vary with each run.
36+
' Therefore, the example output will resemble but may not exactly match the following output (from a 4 core processor):
37+
' ThreadName = Thread5
38+
' ThreadName = Thread6
39+
' ThreadName = Thread4
40+
' ThreadName = Thread6 (repeat)
41+
' ThreadName = Thread1
42+
' ThreadName = Thread4 (repeat)
43+
' ThreadName = Thread7
44+
' ThreadName = Thread5 (repeat)
45+
'</snippet01>

0 commit comments

Comments
 (0)