EventWrittenEventArgs.OSThreadId Property     
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the thread identifier for the OS thread that wrote the event. (.NET Core 2.2 and later only.)
public:
 property long OSThreadId { long get(); };public long OSThreadId { get; }member this.OSThreadId : int64Public ReadOnly Property OSThreadId As LongProperty Value
The thread identifier for the OS thread that wrote the event.