搜索资源列表
low_pipe
- linux环境利用管道进行通讯的例子,父进程fork派生子进程,父子进程利用管道通讯。
pipe_fork
- Linux网络编程。程序创建一个管道,并发起一个新的进程。父进程往管道里写数据,子进程往外读数据。
Ethernet
- 模拟Ethernet帧的发送过程 父进程创建两个子进程和一个共享内存 这个共享内存模拟介质总线 这个两个进程分别从这个内存发送信并进行冲突检测
实验二302_22
- 使用系统调用fork()创建两个子进程。当此程序运行时,在系统中有一个父进程和两个子进程活动。让每一个进程在屏幕上现实一个字符:父进程显示字符’a’;子进程分别显示字符’b’和’c’。试观察记录屏幕上的显示结果并分析原因。-use system calls fork () to create two child process. When running, the system is a process and the father of two sub-process activities.
1
- 主题:进程的管道通信 内容:这是一个设计型实验,要求自行编制程序。 使用系统调用pipe()建立一条管道,两个子进程分别向管道写一句话: Child process1 is sending a message! Child process2 is sending a message! 父进程从管道读出来自两个子进程的信息,显示在屏幕上。 要求: 1) 父进程先接收子进程1发来的消息,然后再接收子进程2发来的消息。 2) 实现管道的互斥使用,当一个子进程正在对
process--synchronization
- 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
communication
- 进程的管道通信,父进程调用fork()生成两个子进程,完成父子进程之间的通信。-Process pipeline communication, the parent process calls fork () to generate two sub-processes, to complete the communication between the parent and child processes.
exercise3
- 先创建一个父进程,然后写一段程序再写一个子进程 使得父进程与子进程能够交替写-To create a parent process, and then write a program to write a child process to parent process and child processes can alternately write
shmem.c
- shmem 的用法 创建共享内存 通过检查在共享内存的头部是否标志字符串"START"来确认父进程已经向共享内存写入有效数据-the shmem usage to create a shared memory by examining the head of the shared memory flag string " START" to confirm the parent process to write shared memory data
fork
- 它用来模拟父进程与子进程之间的创建与通信机制。-It is used to simulate the parent to create the communication mechanism between processes and sub-processes.
test
- 创建两个子进程,分别计算1~5000和5000~1W的素数 通过信号,用父进程专门完成数的保存.同时开启一个进程读文件, * 并讲数据输出到屏幕(保证不被其它信号干扰) -Create two sub-processes, respectively, calculated 1 ~ 5000 and 5000 ~ 1W the prime number of the parent process through the signal specifically to complete t
MUltiProcess
- Linux下多进程的代码实现,修改了system函数,自己实现了一个执行函数,以便获得子进程ID,在父进程结束时把所有子进程也结束掉-Linux code under the multi-process, modify the system function of their execution to achieve a function, in order to obtain the child process ID, the parent process ends when all the
IPC_3
- linux下父进程创建两个子进程互相通信的测试程序-linux under the parent process creates two child processes communicate with each other test procedures
pipe
- 压缩包中包含两个文件pipe3.c和pipe4.c,其中在pipe3.c打开一个无名管道,然后使用fork创建一个子进程,在父进程中进行管道写操作;pipe4.c是管道读操作的文件。-Compressed package contains two files pipe3.c and pipe4.c, which opened in pipe3.c an unnamed pipes, and then use the fork to create a child process, the pare
apuepipe
- unix进程间通信,父进程从终端读入通过管道传递给子进程,之后子进程写入文件。 -unix inter-process communication, the parent reads piped the terminal to the child by the child process after writing to the file.
pipe
- 1个父进程、2个子进程,利用管道和共享内存实现两个子进程之间数据快速传送-A parent process, two sub-processes, the use of pipes and shared memory to achieve fast data transfer between the two sub-processes
12369745557
- Linux服务器进程一般都是守护进程,在创建时父进程要和子进程脱离,将子进程的父进程设置为id为1的进程。随后父进程退出,子进程作为守护进程运行,处理客户端来的业务。-Linux server process is generally a guardian of the process, in the creation of the parent process and child process to be separated, the child process of the parent