Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

C# Background vs Foreground Threads

Language: Layout:
+ ] Show input
Compilation time: 0,14 sec, absolute running time: 0,14 sec, cpu time: 0,08 sec, average memory usage: 16 Mb, average nr of threads: 4 
latest |  history
The thread's background status is: True
Ffffffffff!
The thread's background status is: True
Buzzzzzzz!
Buzzzzzzz!
Ffffffffff!
Ffffffffff!
Buzzzzzzz!
Enjoying the nature
System.Threading.ThreadInterruptedException: Thread was interrupted from a waiting state.
   at System.Threading.Thread.SleepInternal(Int32 millisecondsTimeout)
   at System.Threading.Thread.Sleep(Int32 millisecondsTimeout)
   at Rextester.Program.WaterSoundMethod()

    
                
λ
.NET NoSQL database for rapid development