Notice Board
那一天,我不得已上路。..... 在路上,只为温暖我的人。-<在路上〉歌词
  • 新域名同时启用,可以使用www.dotNETTools.cn 访问本站
  • 垃圾信息太多,暂时关闭Trackback功能,留言请先登录。
  • 建议使用IE6,IE7,Avant Browser,Maxthon, 1024x768 以上分辨率浏览
  • 请在页面的左/右侧Skins下面选择喜欢的皮肤,有10种以上的皮肤供你选择
  • 可以选择Tags页面,可按分类或关键字方式查看
  • .NET评测网出现页面空白的情况,请在IE将编码方式选择为自动或UTF-8,论坛的编码近日修改为UTF-8

-- 2007-11-14 13:27:28 
View Mode: Normal | Article List
January, 2006 | 1
Framework-Specific Guidelines

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";
    currentThread.Name = threadName;
The name is traced in the debugger Threads window, making debug sessions more productive.
  • 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...

    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的名头,才女一个-大才女一个。
    • 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