Multiple choice technology web 2.0

How can you force a thread to sleep for infinite period?

  1. Thread.Sleep(-1)

  2. Thread.Sleep(0)

  3. Thread.Interupt()

  4. Thread.Wait()

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In .NET, passing -1 to Thread.Sleep makes the thread sleep indefinitely until it is interrupted or aborted. Other values like zero yield the processor briefly.