多线程程序设计在教学中的应用.doc

  
约32页DOC格式手机打开展开

多线程程序设计在教学中的应用,multithreaded programming application in teaching摘要:处理器性能的提高,促使程序的设计从单一进程向多线程方向发展。与单线程相比,多线程可以使程序内部的不同部分并发运行,极大得提高了程序的整体效率。本论文展示了一个使用socket模块编写的聊天...
编号:30-480945大小:844.06K
分类: 论文>数学/物理论文

内容介绍

此文档由会员 即刻启程 发布

多线程程序设计在教学中的应用
Multithreaded Programming Application in Teaching



摘要:处理器性能的提高,促使程序的设计从单一进程向多线程方向发展。与单线程相比,多线程可以使程序内部的不同部分并发运行,极大得提高了程序的整体效率。本论文展示了一个使用Socket模块编写的聊天程序。基于多线程,在局域网中可以聊天或传输文件,两个子功能可以同时工作,方便了课堂教学中文本以及数据的传输。
关键词:Python Socket 多线程 通信

Multithreaded Programming Application in Teaching
Abstract:With the improvement of the performance of the CPU, the design of the program developed from a single thead to multithreading. Compared with a single thread, multithreading can make different parts within the program to run concurrently, greatly improved the overall efficiency of the program .This paper presents a chat program written by a Socket module based on multithreading, you can chat or transfer files in the LAN, and two child function can work at the same time. It is convenient for the transmission of the data and texts in the class.

Keywords:Python ; Socket ; Multithreaded programming ; Communications