- Thread class is used to create and start a thread.
- ManagedThreadId property may not be the same as operating system thread ID.
- Abort( ) methods actually raises the ThreadAbortException to kill the thread.
- Resume( ) and Suspend( ) methods have been deprecated.
- In order to notify the thread host about the critical region of a thread, use static methods BeginCriticalRegion( ) and EndCriticalRegion( ) of Thread class. Use these methods inside a method that would be used as a thread.
- The static Sleep( ) method blocks the current thread for a certain amount of time during which other threads may run.
- SpinWait( ) does the same but does not allow other thread to run during that time.
- Join( ) method of Thread class asks the host thread to wait until the child/worker thread has finished executing.
- ParameterizedThreadStart delegate is used to represent threads that require parameters/arguments for calling.
- Page 383*
Tuesday, July 14, 2009
Chapter 7-Lesson 1
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment