检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]中山火炬职业技术学院信息工程系,广东中山528400
出 处:《电脑编程技巧与维护》2014年第6期9-11,共3页Computer Programming Skills & Maintenance
摘 要:委托是一种特殊的类,它将方法当作另一个方法的参数来进行传递,C#的事件、多线程等都是建立在委托机制的基础上。分析了在C#下委托的调用方式,同步调用容易理解,比较简单,但是容易引发阻塞,而异步调用比较抽象,但是能避免阻塞。通过实例,详细地分析了同步方式、基于IAsyncResult异步方式和基于事件的异步方式的差异,分析了网络编程下TCP传输的模式选择。A delegate is a special class that method as a parameter to be passed to another method, C # events, multithreading, etc. are based on trust mechanism. This paper analyzes the invocation of delegate in C #, the synchronous call is easy to understand, relatively simple, but easily lead to obstruction, while an asynchronous call more abstract, but to avoid the obstruction, by example, a detailed analysis of the synchronous mode, based IAsyncResult asynchronous mode and differences in event-based asynchronous mode, the final analysis of TCP transport mode selection under networ k programming.
分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.90