From 3a73e89cebfef963e08e74bb53f34215329aac82 Mon Sep 17 00:00:00 2001 From: Tasha Date: Tue, 9 Apr 2019 20:53:09 -0700 Subject: [PATCH] Adds sample output per issue #1265 I added some sample output and an explanation of how the output can vary. Addresses dotnet/dotnet-api-docs#1265 --- .../system.threading.threadlocal/vb/threadlocal.vb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/snippets/visualbasic/VS_Snippets_CLR_System/system.threading.threadlocal/vb/threadlocal.vb b/snippets/visualbasic/VS_Snippets_CLR_System/system.threading.threadlocal/vb/threadlocal.vb index 42b917d8025..73e3a5ba282 100644 --- a/snippets/visualbasic/VS_Snippets_CLR_System/system.threading.threadlocal/vb/threadlocal.vb +++ b/snippets/visualbasic/VS_Snippets_CLR_System/system.threading.threadlocal/vb/threadlocal.vb @@ -32,4 +32,14 @@ Module ThreadLocalDemo ThreadName.Dispose() End Sub End Module -' \ No newline at end of file +' This multithreading example can produce different outputs for each 'action' invocation and will vary with each run. +' Therefore, the example output will resemble but may not exactly match the following output (from a 4 core processor): +' ThreadName = Thread5 +' ThreadName = Thread6 +' ThreadName = Thread4 +' ThreadName = Thread6 (repeat) +' ThreadName = Thread1 +' ThreadName = Thread4 (repeat) +' ThreadName = Thread7 +' ThreadName = Thread5 (repeat) +'