| Notice Board |
那一天,我不得已上路。..... 在路上,只为温暖我的人。-<在路上〉歌词
|
| -- 2007-11-14 13:27:28 |
View Mode: Normal | Article List
January, 2006 | 1
Juval Lowy-编码规范-线程、序列化、Remoting和安全篇
[ 2006-01-10 23:45:28 | Author: ccBoy ]
Framework-Specific Guidelines
Multithreading
Read More...
Multithreading
- 1. Use synchronization domains. Avoid manual synchronization, because that often leads to deadlocks and race conditions.
- 2. Never call outside your synchronization domain.
- 3. Manage asynchronous call completion on a callback method. Do not wait, poll, or block for completion.
- 4. Always name your threads:Thread currentThread = Thread.CurrentThread;string threadName = "Main UI Thread";The name is traced in the debugger Threads window, making debug sessions more productive.
currentThread.Name = threadName; - 5. Do not call Suspend( ) or Resume( ) on a thread.
- 6. Do not call Thread.Sleep( ), except in the following conditions:
a. Thread.Sleep(0) is an acceptable optimization technique to force a context switch.
Read More...
Tags: VisualStudio2005 |
Category: 我学我评我测我体验 |
Permalink |
Comments: 1 |
Trackbacks: 373 |
Views: 34709
Michele新书-Windows Communication Foundation
[ 2006-01-10 22:55:28 | Author: ccBoy ]
Michele(That Indigo Gril) 的新书-Windows Communication Foundation 号称是一个以Lab为主体形式的书。
目前放出前两张的代码和原书,具体的在 www.thatindigogirl.com
看看作者Michele Leroux Bustamante的名头,才女一个-大才女一个。
目前放出前两张的代码和原书,具体的在 www.thatindigogirl.com
看看作者Michele Leroux Bustamante的名头,才女一个-大才女一个。
- Blog - www.dasblonde.net
- Chief Architect, IDesign Inc. - www.idesign.net
- Microsoft Regional Director, San Diego - www.microsoft.com/rd
- Microsoft MVP - XML Web Services
- BEA Technical Director
- International .NET Association Speaker - www.ineta.org
- Program Advisor, UCSD Extension - cnt.ucsdx.net
- Events Director, International Association of Software Architects - www.iasahome.org/events
- Web Services Expert -www.SearchWebServices.com
1







