This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
There is no version of yield in Thread which allows you to specify a time or Thread instance.
The documentation for yield says
Causes the currently executing thread object to temporarily pause and allow other threads to execute.
The reason that both 1 and 2 will work is that yield is a static method in Thread.
So you can call the method using an instance of Thread, but it is irrelevant which Thread instance calls it. The currently executing thread is the thread that pauses. [ February 16, 2007: Message edited by: Keith Lynn ]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com