代码搜索:PID
找到约 10,000 项符合「PID」的源代码
代码结果 10,000
www.eeworm.com/read/476848/6751890
c child.c
#include
#include
#include
static void sig_cld();
int
main()
{
pid_t pid;
if (signal(SIGCLD, sig_cld) == -1)
perror("signal error");
if ( (pid = fork()) < 0
www.eeworm.com/read/476848/6751991
c pipe1.c
#include "ourhdr.h"
int
main(void)
{
int n, fd[2];
pid_t pid;
char line[MAXLINE];
if (pipe(fd) < 0)
err_sys("pipe error");
if ( (pid = fork()) < 0)
err_sys("fork error");
else if (pid >
www.eeworm.com/read/476848/6752000
c devzero.c
#include
#include
#include
#include "ourhdr.h"
#define NLOOPS 1000
#define SIZE sizeof(long) /* size of shared memory area */
static int update(long *);
int
m
www.eeworm.com/read/476529/6755561
m chap2_8f.m
%PID Controler Based on Ziegler-Nichols
clear all;
close all;
ts=0.25;
sys=tf(1,[10,2,0]);
dsys=c2d(sys,ts,'z');
[num,den]=tfdata(dsys,'v');
axis('square'),zgrid('new');
figure(1);
rloc
www.eeworm.com/read/264377/11317360
c threadid.c
#include "apue.h"
#include
pthread_t ntid;
void
printids(const char *s)
{
pid_t pid;
pthread_t tid;
pid = getpid();
tid = pthread_self();
printf("%s pid %u tid %u (0x%x)\n", s, (u
www.eeworm.com/read/264377/11317532
c fork1.c
#include "apue.h"
int glob = 6; /* external variable in initialized data */
char buf[] = "a write to stdout\n";
int
main(void)
{
int var; /* automatic variable on the stack */
pid_t pid;
var
www.eeworm.com/read/264377/11317542
c shell1.c
#include "apue.h"
#include
int
main(void)
{
char buf[MAXLINE]; /* from apue.h */
pid_t pid;
int status;
printf("%% "); /* print prompt (printf requires %% to print %) */
while (fg