CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - sends
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - sends - List
[
OS Develop
]
osruanzhongduan
DL : 0
操作系统实验 进程软中断通信 编写一段程序,父进程创建一个子进程p1;并使子进程利用系统调用kill()向父进程发送信号,父进程得到信号后输出字符串“received p1 signal.” 。 -Experimental process, the operating system write a soft interrupt communication procedures, the parent creates a child process p1 and to the child process using system call kill () sends a signal to the parent, the parent process get signal after the output string " received p1 signal." .
Date
: 2025-12-25
Size
: 31kb
User
:
董俐
[
OS Develop
]
EOSApp
DL : 0
1)设计一程序,由一个进程创建三个子进程,三个子进程一个是生产者进程,两个是消费者进程。 2)父子进程都使用父进程创建的共享存储区进行通信,由生产者进程将一个数组中的十个数值发送到由5个缓冲区组成的共享内存中。? 3)两个消费者进程轮流接收并输出这十个数值,同时将两个消费者进程读出的数值进行累加求各和。 4)考虑生产者进程生产的速度和消费者进程速度。(1) a program is designed to create three sub processes from one process, three sub processes is the producer process, and the two is the consumer process. 2) the father child process communicates with the shared storage area created by the parent process, and sends ten values in one array to the shared memory composed of 5 buffers by the producer process. L 3) the two consumer processes take turns to receive and output the ten values, and add values to each of the two consumer processes. 4) take into account the production speed of the producer process and the speed of the consumer process.)
Date
: 2025-12-25
Size
: 2kb
User
:
Ladidadidada
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.