crazy proj : No 4 - multi threading
摘要:
Baiscs:1. Thread localnew ThreadLocal(()=>"hehe")LocalDataStoreSlot slot ; Thread.setData(slot,123)2. Thread with parametersclass MyThreadT data3. background threadIsBackground=false4. control threadstart sleep join abort5. ThreadPoolThreadPool.QueueUserWorkItem(_=>Console.WriteLine( 阅读全文
posted @ 2014-03-24 17:46 surghost 阅读(154) 评论(0) 推荐(0) 编辑