多线程
摘要:临界区:“代码”和“数据”有些代码(操作)是共用的,数据(资源)是分开的,数。但是多线程环境下,可能带来的问题就是几个线程同时执行一个函数,导致数据的混乱,产生不可预料的结,,因此我们必须避免这种情况的发生。C#提供了一个关键字lock,它可以把一段代码定义为互斥段(critical section),互斥段在一个时刻内只允许一个线程进入执行lock(expression) statement_b...
阅读全文
Kinds of enterprise application
摘要:When we discuss how to design enterprise applications, and what pattern to use, it's important to realize that enterprise applications are all different and that different problems lead to different w...
阅读全文