当前位置:
首页
资源下载

搜索资源 - parent-child process
搜索资源列表
-
0下载:
线程通信 本 文 我 们 将 在VC++4.1 环 境 下 介 绍 一 个 父 进 程 和 其 子 进 程 的 通 信 实 例。 在 父 进 程Parent 窗 口 中 按 一 下 鼠 标 左 键, 就 会 产 生 一 个Pipe 和 启 动 子 进 程Child, 并 从Pipe 一 端 发 送 信 息, 同 时Child 启 动 后 会 创 建 一 个 工 作 线 程, 专 门 用 来 从 管 道 的 另 一 端 读 入 数 据。 通 过 父 进 程 菜 单 项 的 控 制 来 改 变 图
-
-
0下载:
目录
1.理解进程 5
1.1.进程的基本概念 5
1.1.1.区别程序与进程 5
1.1.2.进程分类 5
1.1.3.进程属性 5
1.1.4. 父进程和子进程 5
1.2.Unix/Linux下的进程管理 6
1.2.1.进程是系统资源管理的基本单位 6
1.2.2. Unix/Linux进程 6
1.2.3. task_struct数据结构组成 6
1.2.4.进程 Identifiers 8
1.2.6. 进程创建 10
1.2.7.
-
-
0下载:
一个非常实用的,父进程创建子进程,并能获取子进程输出信息的源代码!-A very practical, the parent process creates the child process, and to have access to the child process output information of the source code!
-
-
0下载:
该程序先使用pipe()函数创建一个临时通信管道,然后使用fork()创建两个子进程,使用write()函数向管道两次写入”I’m parent process。”的信息,两个子进程使用read()函数从管道中获取信息并输出,然后两个子进程分别向管道写入”I’m child process a”和”I’m child process b”信息,由父进程从管道中读出并显示。在使用write()函数前,需要先使用lockf()函数锁住管道,写完信息后再解锁管道。-The program first
-
-
0下载:
里面是进程的并发执行,父进程创建子进程,。父进
程每隔 3 秒重复建立两个子进程,首先创建的让其执行 ls 命令,之后创建执行让其
执行 ps 命令,并控制 ps 命令总在 ls 命令之前执行。-Which is the process of concurrent execution, the parent process creates the child process,. Parent process repeated every 3 seconds to establish tw
-
-
0下载:
Linux进程的创建与父子进程同步,包括父进程创建子进程、查看进程家族树、父子进程同步-Linux process, the process of simultaneous creation and his son, including the parent process creates a child process, view the process of the family tree, father and son process synchronization
-
-
0下载:
内核模块编程
1)设计一模块,该模块的功能是列出系统中所有内核线程的程序名、PID号和进程状态。
2)设计一个带参数的内核模块,其参数为某个进程的PID号,该模块的功能是列出该进程的家族信息,包括父进程、兄弟进程和子进程的程序名、PID号。
-Kernel module programming
1) design a module, the module s function is to list all kernel threads of the process name, P
-
-
0下载:
实现进程的软中断通信。
使用系统调用fork()创建两个子进程,再用系统调用signal()让父进程捕捉键盘上来的中断信号(即DEL键);当捕捉到中断信号后,父进程用系统调用kill()向两个进程发出信号,子进程捕捉到信号后分别输出下列信息后终止:
Child Process 1 is Killed by Parent!
Child Process 2 is Killed by Parent!
父进程等待两个子进程终止后,输出如下信息后终止:
Parent Proce
-
-
0下载:
操作系统实验父进程与子进程关于程序执行时输出顺序的问题-Operating system experiments on the parent process and child process output sequence of program execution problems
-
-
0下载:
Linux Socket 基于GTK+聊天软件,采用父子进程编写,互斥死锁-Linux Socket based on GTK+ chat software written in parent-child process mutex deadlock
-
-
0下载:
我写的父子进程通信的代码,想学习进程通信的可以-this is the code of parent and child process
-
-
0下载:
利用unix中的父子进程和exec函数实现shell命令-Parent-child process and exec function in unix shell command
-
-
0下载:
编写程序,通过fork生成父子进程,子进程运行中显示当前系统的记录时钟,父进程运行时完成将数字1~100循环显示到标准输出流上。多次运行该程序,观察输出内容的变化。然后修改程序使得:
(1)始终为子进程先输出。
(2)始终为父进程先输出。
-Programming, parent and child processes generated via fork, the child process running clock displays the current system o
-
-
0下载:
编写程序,要求父进程创建一个子进程,子进程对一个50*50的字符数组赋值,由父进程改变子进程的优先级,观察不同优先级进程使用CPU的时间-Written procedures that require the parent process creates a child process, the child process on a 50* 50 array of characters assigned by the parent process to change the priority o
-
-
0下载:
创建两个进程,让子进程读取一个文件,父进程等待子进程读取完文件后继续执行,实现进程协同工作。
进程协同工作就是协调好两个进程,使之安排好先后次序并以此执行,可以用等待函数来实现这一点。当需要等待子进程运行结束时,可在父进程中调用等待函数。
-Create two processes, allowing the child to read a file, read the parent process waits for the child process to continue exe
-
-
0下载:
在vc6.0的mfc里面用c++开发的操作系统上机作业,打开父进程debug文件夹里面的父进程exe,即可点击创建子进程,发送消息,以管道方式通信。-In vc6.0 of mfc eyed on c++ operating system developed machine operation, open the parent folder inside debug the parent process exe, you can click create a child process, sen
-
-
0下载:
编写程序,要求父进程创建一个子进程,子进程对一个50*50的字符数组赋值,由父进程改变子进程的优先级,观察不同优先级进程使用CPU的时间-Written procedures that require the parent process creates a child process, the child process on a 50* 50 array of characters assigned by the parent process to change the priority o
-
-
0下载:
编写程序,要求父进程创建一个子进程,子进程对一个50*50的字符数组赋值,由父进程改变子进程的优先级,观察不同优先级进程使用CPU的时间-Written procedures that require the parent process creates a child process, the child process on a 50* 50 array of characters assigned by the parent process to change the priority o
-
-
0下载:
编制一个程序,使其实现进程的软中断通信。父进程发信号控制子程序的终止。
使用系统调用fork()创建两个子进程,再用系统调用signal()让父进程捕捉键盘上的中断信号;当捕捉到中断信号后,父进程用系统调用Kill()向两个子进程发出信号,子进程捕捉到信号后分别输出下列信息后终止:
Child Proeess 1 is Killed by Parent!
Child Process 2 is Killed by Parent!
父进程等待两个子进程终止后,输出如下的信息
-
-
0下载:
Using parent-child process to play bridge automatically according to the basic rules
-