文件名称:线程通信
介绍说明--下载内容来自于网络,使用问题请自行百度
线程通信 本 文 我 们 将 在VC++4.1 环 境 下 介 绍 一 个 父 进 程 和 其 子 进 程 的 通 信 实 例。 在 父 进 程Parent 窗 口 中 按 一 下 鼠 标 左 键, 就 会 产 生 一 个Pipe 和 启 动 子 进 程Child, 并 从Pipe 一 端 发 送 信 息, 同 时Child 启 动 后 会 创 建 一 个 工 作 线 程, 专 门 用 来 从 管 道 的 另 一 端 读 入 数 据。 通 过 父 进 程 菜 单 项 的 控 制 来 改 变 图 形 形 状 参 数, 并 传 给Child 使 之 在 自 己 的 窗 口 中 绘 出 响 应 的 图 形。 下 面 分 别 就 父 进 程Parent 和 子 进 程Child 来 进 行 说 明。-thread communication in this paper we will VC 4.1 environment on the process of a father and his son, the process of communication examples. The parent process Parent window on the mouse button, it will have a Pipe and promoter process Child, and Pipe from one end to send messages and Child will be launched to create a work of threads, devoted to the pipeline from the other end of read data. Father process through a menu item to change the control parameters of graphics shapes and Child pass to make it in their own window graphics charted response. Below process on the father and son Parent Child process to say.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建 文本文档.txt
www.dssz.com.txt
www.dssz.com.txt
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
