using System;using System.Collections.Generic;using System.Data;using System.Linq;using System.Reflection;using System.Text;using System.Threading.Tas...
分类:
其他好文 时间:
2015-06-06 17:59:44
阅读次数:
96
妥妥的,也就是说是由`pthread_create`出来的线程来执行了`Thread.run`方法,`1:1`的线程模型。...
分类:
编程语言 时间:
2015-06-06 09:10:09
阅读次数:
201
C#定义并实现单链表usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceLinked
{
//单链表结点类,采用泛型
publicclassNode<T>
{
privateTdata;//数据域,当前结点的数据
privateNode<T>ne..
分类:
编程语言 时间:
2015-06-05 23:01:35
阅读次数:
291
图图表示点之间的关系,在C#中通过节点对象的集合来表示点(Vertex),用邻接矩阵(adjacencymatrix)来表示点之间的关系。下面来看C#实现。usingSystem;
usingSystem.Collections;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.T..
分类:
编程语言 时间:
2015-06-05 17:57:16
阅读次数:
158
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 代理模式{ //追求者的方法 public i...
分类:
其他好文 时间:
2015-06-05 13:42:08
阅读次数:
100
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ class...
分类:
编程语言 时间:
2015-06-05 11:47:09
阅读次数:
153
public partial class App : Application { System.Threading.Mutex mutex; public App() { this.Startup += new StartupEv...
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ class...
分类:
其他好文 时间:
2015-06-04 22:27:52
阅读次数:
122
异常:“System.Threading.ThreadStateException”类型的未经处理的异常在 System.Windows.Forms.dll 中发生
其他信息: 在可以调用 OLE 之前,必须将当前线程设置为单线程单元(STA)模式。请确保您的 Main 函数带有 STAThreadAttribute 标记。
只有将调试器附加到该进程才会引发此异常。
分析:线程间操作...
分类:
其他好文 时间:
2015-06-04 19:31:59
阅读次数:
304
using System;using System.Collections.Generic;using System.Globalization;using System.Linq;using System.Text;using System.Threading.Tasks;using System...
分类:
其他好文 时间:
2015-06-04 15:29:50
阅读次数:
119