线程通信

所属分类:文章/文档
开发工具:Visual C++
文件大小:4KB
下载次数:21
上传日期:2005-01-10 10:08:23
上 传 者jany19
说明:  线程通信 本 文 我 们 将 在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 (9129, 2005-01-10)

近期下载者

相关文件


收藏者