论文首页哲学论文经济论文法学论文教育论文文学论文历史论文理学论文工学论文医学论文管理论文艺术论文 |
摘 要
当今社会是1个信息高速发展的社会,计算机在各行各业的应用越来越广泛。计算机的硬件技术也已经达到了很高的水平,但软件水平的发展总比硬件领先1步。计算任务对硬件的要求越来越高,在硬件未及时同步发展的时候,软件实现的方法应运而生。分布计算是基于分布式系统的1种计算模型。 分布计算模型的特点有:由多个处理机或者多个计算机组成,这些计算机或处理器可以在物理上相邻,用机器内部总线或开关连接,通过共享主存进行通信,也可以在地理上分散,用计算机网络互联,采用消息通信,同时计算过程对用户是透明的,即使用户使用计算机资源进行计算时,也不知道这些资源存在何处。由于单台计算机的计算能力有限,在实际应用中,我们常常将计算任务分成多个子任务,将每个子任务,放到网络中不同的计算机上进行计算,实现分布式计算,以加快我们的计算速度。本实例是在JAVA开发平台Eclipse3.0上编写的,基于socket实现1个矩阵的相乘计算,从而实现分布计算的简单应用。
关键词:分布计算、socket、I/O流、多线程
Abstract
Nowadays, information technology is developing with high-speed, the computer is more and more useded extensively the every trade.The hardware technique of the computer also has already come to a the very high level, but the development of software is more faster than hardware.The request of new –builded procedure to hardware is more and more high, at the time of hardware did not develop in time and synchronously, the method of the software realization emerge with the tide of the times.Distribute the calculation is according to a kind of calculation model of the distribute type system. The characteristics of distributes to compute the model:Handle from manies machine or several computer constitute, these computer or processor can be close together in the physics, switch conjunctions using the machine internal and total line, connected through internt main line or switch, also can on the geography dispersion, use the calculator network with each other , adopt the news correspondence, compute the process at the same time transparent to customer, even customer usage the calculator resources carries on the calculation, also not know that these resourceses save where.Because the calculation ability of the single pedestal calculator is limited, in actually apply, we usually are divided into the calculation mission many statures mission, put each statures mission, the different calculator of network goes forward to go the calculation, carrying out the distribute type calculation, to speed our calculation speed.The originally solid example develops the terrace Eclipse3.0 in the JAVA to write up the plait, carrying out a calculation according to the socket, thus carrying out a imple application of distributed calculating. (科教作文网http://zw.ΝsΕac.cOM编辑)
Key word: distributed calculating,socket,I/O stream,mutipule-process.