Location:
Search - SIGUSR1
Search list
Description: 此程序在运行的时候,产生一个子进程.此子进程每隔1秒钟,向父进程发送一个SIGUSR1信号,父进程收到信号后,打印当前系统时间.当经过10秒钟后,子进程结束运行,并发送SIGUSR2信号,通知父进程 父进程收到SIGUSR2信号后,退出.-this program in running time, have a child process. This process for every one seconds, father process to send a signal SIGUSR1 father, process signals, Print the current system time. When, after 10 seconds later, the child process ends, and send SIGUSR2 signal the father of the father of the process of notification process signals received SIGUSR2 withdrawal.
Platform: |
Size: 844 |
Author: w_z_y |
Hits:
Description: 此程序在运行的时候,产生一个子进程.此子进程每隔1秒钟,向父进程发送一个SIGUSR1信号,父进程收到信号后,打印当前系统时间.当经过10秒钟后,子进程结束运行,并发送SIGUSR2信号,通知父进程 父进程收到SIGUSR2信号后,退出.-this program in running time, have a child process. This process for every one seconds, father process to send a signal SIGUSR1 father, process signals, Print the current system time. When, after 10 seconds later, the child process ends, and send SIGUSR2 signal the father of the father of the process of notification process signals received SIGUSR2 withdrawal.
Platform: |
Size: 1024 |
Author: |
Hits:
Description: Some examples/programs of using unix signals.
Write a program wich simulates a stopwatch. First the timer is
initialized at 0. When receiving SIGUSR1 an intermediate time
will be displayed. When receiving SIGUSR2 the program will end.
Write a program which, upon receiveing the semnal SIGUSR1 signal starts to
read a text file and, upon receiving the the SIGUSR2 signal displays the status#of a file:number of lines, number of words, number of characters
Platform: |
Size: 1024 |
Author: mariaandreea5 |
Hits:
Description: 主进程收到信号SIGUSR1后创造三个线程-Main process receives the signal SIGUSR1 create three threads
Platform: |
Size: 1024 |
Author: sun |
Hits:
Description: 利用管道技术实现父子进程间通信,具体流程:父进程以3秒为周期接收用户输入并发送到子进程,子进程接收到信息后显示并回传,父进程接收到回传信息后显示。父子进程在通信过程中采用信号中断处理方式进行处理,接收到“exit”字符串后父子进程均退出。(提示,采用SIGUSR1或SIGUSR2信号)-The use of pipeline technology communication between parent and child, the specific process: the parent process to three seconds for the cycle to receive user input sent to the child process, the child process after receiving the information display and returns the parent process receives a return message to be displayed. Parent and child processes used in the communication process interrupt signal processing methods for processing, receiving the " exit" string both parent and child process exits. (Tip, use SIGUSR1 or SIGUSR2 signal)
Platform: |
Size: 14336 |
Author: 段慧妍 |
Hits:
Description: perf_evlist__prepare_workload will send a SIGUSR1 if the fork fails, since we asked by setting its exec_error to this handler.
Platform: |
Size: 1024 |
Author: sigiuhs |
Hits:
Description: will use SIGUSR1 for window size hack, so hold it off.
Platform: |
Size: 5120 |
Author: reweics |
Hits: