April 2017
Intermediate to advanced
628 pages
13h 46m
English
public void DoBackgroundTask() { WriteLine($"Thread {Thread.CurrentThread.ManagedThreadId} has a threadstate of {Thread.CurrentThread.ThreadState} with {Thread.CurrentThread.Priority} priority"); WriteLine($"Start thread sleep at {DateTime.Now.Second} seconds"); Thread.Sleep(3000); WriteLine($"End thread sleep at {DateTime.Now.Second} seconds"); }
Read now
Unlock full access