摘要:
using System;using System.Threading;public class Example{ // A semaphore that can satisfy at most two concurrent // requests. // private static Semaphore _pool = new Semaphore(2, 2); public static void Main() { // Create and start two threads, A and B. // Thread tA = new Thread(new ThreadStart(Threa 阅读全文
posted @ 2011-06-10 15:48 hyruur 阅读(1313) 评论(1) 推荐(0) 编辑